/*
MySQL Data Transfer
Source Host: 132.159.156.184
Source Database: mobilegov_wc
Target Host: 132.159.156.184
Target Database: mobilegov_wc
Date: 10-3-8 9:36:00
*/

SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for app_rec_att
-- ----------------------------
CREATE TABLE `app_rec_att` (
  `APP_REC_ATT_ID` int(30) NOT NULL auto_increment,
  `APP_REC_ATT_FATHER_ID` int(30) default NULL,
  `FILE_NAME` varchar(255) NOT NULL,
  `FILE_PATH` varchar(255) default NULL,
  `CATEGORY` varchar(30) default NULL,
  `FILE_SIZE` varchar(30) default NULL,
  `APP_RECORD_ID` int(4) default NULL,
  `FORMAT` varchar(30) default NULL,
  `IS_ORG` tinyint(1) default NULL,
  `ATT_SYS_TYPE` varchar(30) default NULL,
  `FILE_DESC` varchar(255) default NULL,
  PRIMARY KEY  (`APP_REC_ATT_ID`),
  KEY `FK_RECORD_ATTCH` (`APP_RECORD_ID`),
  KEY `FK_ATT_SELF` (`APP_REC_ATT_FATHER_ID`),
  CONSTRAINT `app_rec_att_ibfk_1` FOREIGN KEY (`APP_REC_ATT_FATHER_ID`) REFERENCES `app_rec_att` (`APP_REC_ATT_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=171 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for app_rec_field
-- ----------------------------
CREATE TABLE `app_rec_field` (
  `app_rec_fileld_id` int(11) NOT NULL auto_increment,
  `app_record_id` int(11) default NULL,
  `field_name` varchar(30) NOT NULL,
  `field_value` varchar(255) default NULL,
  PRIMARY KEY  (`app_rec_fileld_id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for app_record
-- ----------------------------
CREATE TABLE `app_record` (
  `APP_RECORD_ID` int(4) NOT NULL auto_increment,
  `APP_RECORD_KEY` varchar(30) NOT NULL,
  `APP_RECORD_KEY_STR` varchar(255) default NULL,
  `XMLDATA` text,
  `APP_RECORD_STATUS` int(4) default NULL,
  `APP_ID` int(4) default NULL,
  `APP_RECORD_TIME` datetime default NULL,
  `APP_RECORD_UNIT_CODE` varchar(30) default NULL,
  PRIMARY KEY  (`APP_RECORD_ID`),
  KEY `FK_APP_DATA` (`APP_ID`),
  CONSTRAINT `app_record_ibfk_1` FOREIGN KEY (`APP_ID`) REFERENCES `application` (`APP_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for application
-- ----------------------------
CREATE TABLE `application` (
  `APP_ID` int(4) NOT NULL auto_increment,
  `APP_FATHER_ID` int(4) default NULL,
  `APP_NAME` varchar(30) default NULL,
  `APP_DESC` varchar(255) default NULL,
  `APP_CODE` varchar(30) default NULL,
  `IS_LEAF` int(11) default NULL,
  PRIMARY KEY  (`APP_ID`),
  KEY `FK_APPLICATION_SELF` (`APP_FATHER_ID`),
  CONSTRAINT `application_ibfk_1` FOREIGN KEY (`APP_FATHER_ID`) REFERENCES `application` (`APP_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=84 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for application_prof
-- ----------------------------
CREATE TABLE `application_prof` (
  `APP_PROF_NAME` varchar(30) NOT NULL,
  `APP_PROF_VALUE` varchar(5000) NOT NULL,
  `APP_PROF_ID` int(8) NOT NULL auto_increment,
  `APP_ID` int(4) default NULL,
  PRIMARY KEY  (`APP_PROF_ID`),
  KEY `FK_APP_PROF` (`APP_ID`),
  CONSTRAINT `application_prof_ibfk_1` FOREIGN KEY (`APP_ID`) REFERENCES `application` (`APP_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=177 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for appsystem
-- ----------------------------
CREATE TABLE `appsystem` (
  `APPSYSTEM_ID` int(4) NOT NULL auto_increment,
  `APPSYSTEM_NAME` varchar(30) default NULL,
  `APPSYSTEM_DESC` varchar(255) default NULL,
  PRIMARY KEY  (`APPSYSTEM_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for cmd
-- ----------------------------
CREATE TABLE `cmd` (
  `id` int(8) NOT NULL auto_increment,
  `requestId` varchar(8) default NULL,
  `appId` varchar(10) default NULL,
  `appTriggerFlag` varchar(20) default NULL,
  `appVersion` varchar(5) default NULL,
  `localOperate` varchar(2) default NULL,
  `cmdFlag` varchar(2) default NULL,
  `localMode` varchar(2) default NULL,
  `realTime` varchar(1) default NULL,
  `localLateTime` varchar(8) default NULL,
  `localIntervalTime` varchar(8) default NULL,
  `localNum` varchar(6) default NULL,
  `DataLoadInterval` varchar(10) default NULL,
  `parasSet` varchar(100) default NULL,
  `backUrl` varchar(50) default NULL,
  `spDesc` varchar(10) default NULL,
  `msgContent` varchar(200) default NULL,
  `msgMobile` varchar(300) default NULL,
  `demo` varchar(200) default NULL,
  `demo1` varchar(200) default NULL,
  `demo2` varchar(200) default NULL,
  `create_time` datetime default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for data_msg
-- ----------------------------
CREATE TABLE `data_msg` (
  `ID` int(11) NOT NULL auto_increment,
  `MSGID` varchar(255) NOT NULL,
  `APPNAME` varchar(50) default NULL,
  `FUNCNAME` varchar(255) default NULL,
  `CONTENT` varchar(255) default NULL,
  PRIMARY KEY  (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for datasource
-- ----------------------------
CREATE TABLE `datasource` (
  `PARAM_ID` int(11) NOT NULL auto_increment,
  `DS_NAME` varchar(20) default NULL,
  `DS_DESC` varchar(30) default NULL,
  `PARAM_NAME` varchar(20) default NULL,
  `PARAM_VALUE` varchar(300) default NULL,
  `DS_TYPE` varchar(20) default NULL,
  PRIMARY KEY  (`PARAM_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for datasrc_field
-- ----------------------------
CREATE TABLE `datasrc_field` (
  `CODE_ID` int(11) NOT NULL,
  `PARENT_ID` int(11) default NULL,
  `CODE_NAME` varchar(20) default NULL,
  `CODE_VALUE` varchar(50) default NULL,
  `CODE_DESC` varchar(30) default NULL,
  PRIMARY KEY  (`CODE_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for function
-- ----------------------------
CREATE TABLE `function` (
  `FUNCTION_ID` int(4) NOT NULL auto_increment,
  `FUNCTION_NAME` varchar(30) default NULL,
  `APP_ID` int(4) default NULL,
  `FUNCTION_CODE` varchar(30) default NULL,
  `FUNCTION_DESC` varchar(255) default NULL,
  PRIMARY KEY  (`FUNCTION_ID`),
  KEY `FK_APPLICATION_FUNCTION` (`APP_ID`),
  CONSTRAINT `function_ibfk_1` FOREIGN KEY (`APP_ID`) REFERENCES `application` (`APP_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for function_prof
-- ----------------------------
CREATE TABLE `function_prof` (
  `FUNC_PROF_NAME` varchar(30) NOT NULL,
  `FUNC_PROF_VALUE` varchar(20000) NOT NULL,
  `FUNCTION_ID` int(4) NOT NULL,
  `FUNC_PROF_ID` int(8) NOT NULL auto_increment,
  `CLIENT_SYS_TYPE` varchar(30) default NULL,
  PRIMARY KEY  (`FUNC_PROF_ID`),
  KEY `FK_FUNCTION_PROF` (`FUNCTION_ID`),
  CONSTRAINT `function_prof_ibfk_1` FOREIGN KEY (`FUNCTION_ID`) REFERENCES `function` (`FUNCTION_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=4897 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for loc_info
-- ----------------------------
CREATE TABLE `loc_info` (
  `loc_id` int(11) NOT NULL auto_increment,
  `app_id` varchar(20) default NULL,
  `msid` varchar(15) default NULL,
  `msid_type` varchar(4) default NULL,
  `position_result` varchar(4) default NULL,
  `fixmode` varchar(4) default NULL,
  `fixtime` datetime default NULL,
  `lat_type` varchar(2) default NULL,
  `lat` varchar(15) default NULL,
  `lng_type` varchar(2) default NULL,
  `lng` varchar(15) default NULL,
  `atitude` varchar(15) default NULL,
  `direction` varchar(15) default NULL,
  `velocity` varchar(15) default NULL,
  `loc_precision` varchar(15) default NULL,
  `create_time` datetime default NULL,
  `is_del` int(1) default '0',
  `loc_result` varchar(2) default NULL,
  `req_id` varchar(20) default '-1',
  PRIMARY KEY  (`loc_id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for lta_info
-- ----------------------------
CREATE TABLE `lta_info` (
  `lta_id` int(11) NOT NULL auto_increment,
  `app_id` varchar(20) default NULL,
  `req_id` varchar(20) default NULL,
  `result` varchar(10) default NULL,
  `msid` varchar(20) default NULL,
  `msid_type` varchar(4) default NULL,
  `create_time` datetime default NULL,
  PRIMARY KEY  (`lta_id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for mail_receive
-- ----------------------------
CREATE TABLE `mail_receive` (
  `mail_id` int(11) NOT NULL auto_increment,
  `subject` varchar(255) default NULL COMMENT '邮件主题',
  `user_loginname` varchar(30) default NULL COMMENT '当前系统登录名',
  `domain` varchar(100) default NULL COMMENT '邮件域',
  `sender` varchar(100) default NULL COMMENT '邮件发送人',
  `message_body` longblob,
  `message_attribute` longblob,
  `message_senddate` datetime default NULL COMMENT '邮件的发送时间',
  `message_receivedate` datetime default NULL COMMENT '邮件在本系统的接收时间',
  `message_size` varchar(30) default NULL COMMENT '邮件大小',
  `message_attachnum` int(11) default NULL COMMENT '邮件附件数目',
  `message_id` varchar(255) default NULL COMMENT '邮件标识',
  `message_to` varchar(1000) default NULL,
  `message_cc` varchar(1000) default NULL,
  `message_bcc` varchar(1000) default NULL,
  `message_status` int(11) default '1',
  PRIMARY KEY  (`mail_id`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for menu
-- ----------------------------
CREATE TABLE `menu` (
  `IDNO` int(11) NOT NULL auto_increment,
  `IMG` varchar(20) default NULL,
  `NAMEE` varchar(30) default NULL,
  `URL` varchar(100) default NULL,
  `PARENTID` int(11) default NULL,
  `SORT` varchar(30) default NULL,
  `OPER` varchar(255) default NULL,
  `S_ROLE` varchar(255) default NULL,
  `IS_LEAF` varchar(255) default '0',
  PRIMARY KEY  (`IDNO`),
  KEY `FK_MENU_SELF` (`PARENTID`)
) ENGINE=InnoDB AUTO_INCREMENT=1009 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for one_level_code
-- ----------------------------
CREATE TABLE `one_level_code` (
  `CODE_NAME` varchar(30) NOT NULL,
  `CODE_DESC` varchar(100) default NULL,
  `CODE_VALUE` varchar(1000) NOT NULL,
  PRIMARY KEY  (`CODE_NAME`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for platform_prof
-- ----------------------------
CREATE TABLE `platform_prof` (
  `platform_prof_Id` int(11) NOT NULL auto_increment,
  `platform_prof_name` varchar(30) NOT NULL,
  `platform_prof_value` varchar(20000) NOT NULL,
  PRIMARY KEY  (`platform_prof_Id`)
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for r_admin_unit
-- ----------------------------
CREATE TABLE `r_admin_unit` (
  `R_ADMIN_UNIT_ID` int(11) NOT NULL auto_increment,
  `USER_ID` int(11) default NULL,
  `UNIT_ID` int(11) default NULL,
  PRIMARY KEY  (`R_ADMIN_UNIT_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=gb2312;

-- ----------------------------
-- Table structure for r_user_unit_role
-- ----------------------------
CREATE TABLE `r_user_unit_role` (
  `USER_ID` int(8) NOT NULL,
  `UNIT_ID` int(4) NOT NULL,
  `ROLE_ID` int(4) NOT NULL,
  `R_USER_UNIT_ROLE_ID` int(8) NOT NULL auto_increment,
  PRIMARY KEY  (`R_USER_UNIT_ROLE_ID`),
  KEY `FK_USER_R` (`USER_ID`),
  KEY `FK_UNIT_R` (`UNIT_ID`),
  KEY `FK_ROLE_R` (`ROLE_ID`),
  CONSTRAINT `r_user_unit_role_ibfk_1` FOREIGN KEY (`ROLE_ID`) REFERENCES `role` (`ROLE_ID`),
  CONSTRAINT `r_user_unit_role_ibfk_2` FOREIGN KEY (`USER_ID`) REFERENCES `user` (`USER_ID`),
  CONSTRAINT `r_user_unit_role_ibfk_3` FOREIGN KEY (`UNIT_ID`) REFERENCES `unit` (`UNIT_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=316 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for role
-- ----------------------------
CREATE TABLE `role` (
  `ROLE_ID` int(4) NOT NULL auto_increment,
  `ROLE_NAME` varchar(30) NOT NULL,
  `ROLE_CODE` varchar(30) default NULL,
  `ROLE_DESC` varchar(255) default NULL,
  `UNIT_ID` int(11) default NULL,
  PRIMARY KEY  (`ROLE_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for two_level_code
-- ----------------------------
CREATE TABLE `two_level_code` (
  `LEVEL1_CODE_NAME` varchar(30) NOT NULL,
  `LEVEL2_CODE_NAME` varchar(100) NOT NULL,
  `CODE_VALUE` varchar(1000) NOT NULL,
  PRIMARY KEY  (`LEVEL1_CODE_NAME`,`LEVEL2_CODE_NAME`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for unit
-- ----------------------------
CREATE TABLE `unit` (
  `UNIT_ID` int(4) NOT NULL auto_increment,
  `UNIT_NAME` varchar(30) NOT NULL,
  `APPSYSTEM_ID` int(4) default NULL,
  `UNIT_DESC` varchar(255) default NULL,
  `UNIT_CODE` varchar(30) NOT NULL,
  PRIMARY KEY  (`UNIT_ID`),
  UNIQUE KEY `UNIT_CODE` (`UNIT_CODE`),
  KEY `FK_APPSYSTEM_UNIT` (`APPSYSTEM_ID`),
  CONSTRAINT `unit_ibfk_1` FOREIGN KEY (`APPSYSTEM_ID`) REFERENCES `appsystem` (`APPSYSTEM_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for unit_app_prof
-- ----------------------------
CREATE TABLE `unit_app_prof` (
  `UNIT_ID` int(4) NOT NULL,
  `APP_ID` int(4) NOT NULL,
  `UNIT_APP_PROF_NAME` varchar(30) default NULL,
  `UNIT_APP_PROF_VALUE` varchar(255) default NULL,
  `UNIT_APP_PROF_ID` int(8) NOT NULL auto_increment,
  PRIMARY KEY  (`UNIT_APP_PROF_ID`),
  KEY `FK_UNIT_APP_PROF` (`UNIT_ID`),
  KEY `FK_APPLICATION_UNIT_PROF` (`APP_ID`),
  CONSTRAINT `unit_app_prof_ibfk_1` FOREIGN KEY (`APP_ID`) REFERENCES `application` (`APP_ID`),
  CONSTRAINT `unit_app_prof_ibfk_2` FOREIGN KEY (`UNIT_ID`) REFERENCES `unit` (`UNIT_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for unit_prof
-- ----------------------------
CREATE TABLE `unit_prof` (
  `unit_prof_id` int(11) NOT NULL auto_increment,
  `unit_id` int(11) NOT NULL,
  `unit_prof_name` varchar(50) NOT NULL,
  `unit_prof_value` varchar(20000) default NULL,
  PRIMARY KEY  (`unit_prof_id`)
) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for user
-- ----------------------------
CREATE TABLE `user` (
  `USER_ID` int(8) NOT NULL auto_increment,
  `USER_LOGINNAME` varchar(30) NOT NULL,
  `USER_NAME` varchar(30) default NULL,
  `USER_PASSWORD` varchar(100) default NULL,
  `USER_TELEPHONE` varchar(30) default NULL,
  `USER_PINCODE` varchar(30) default NULL,
  `ISACTIVE` tinyint(1) default NULL,
  `UNIT_ID` int(4) default NULL,
  `USER_TELE_TYPE` varchar(30) default NULL,
  PRIMARY KEY  (`USER_ID`),
  UNIQUE KEY `LOGINNAMEINDEX` (`USER_LOGINNAME`),
  KEY `FK_UNIT_USER` (`UNIT_ID`),
  CONSTRAINT `user_ibfk_1` FOREIGN KEY (`UNIT_ID`) REFERENCES `unit` (`UNIT_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for user_app_prof
-- ----------------------------
CREATE TABLE `user_app_prof` (
  `APP_ID` int(4) NOT NULL,
  `USER_ID` int(8) NOT NULL,
  `USER_APP_PROF_NAME` varchar(30) default NULL,
  `USER_APP_PROF_VALUE` varchar(255) default NULL,
  `USER_APP_PROF_ID` int(8) NOT NULL auto_increment,
  PRIMARY KEY  (`USER_APP_PROF_ID`),
  KEY `FK_APPLICATION_USER_PROF` (`APP_ID`),
  KEY `FK_USER_APPLICATION_PROF` (`USER_ID`),
  CONSTRAINT `user_app_prof_ibfk_1` FOREIGN KEY (`USER_ID`) REFERENCES `user` (`USER_ID`),
  CONSTRAINT `user_app_prof_ibfk_2` FOREIGN KEY (`APP_ID`) REFERENCES `application` (`APP_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=1789 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for version
-- ----------------------------
CREATE TABLE `version` (
  `VERSION_ID` int(4) NOT NULL auto_increment,
  `VERSION_NAME` varchar(30) default NULL,
  `VERSION_NUM` varchar(30) default NULL,
  `VERSION_PUBLISH_DATE` date default NULL,
  `VERSION_PUBLISH_STATUS` varchar(30) default NULL,
  `CLIENT_SYS_TYPE` varchar(30) NOT NULL,
  PRIMARY KEY  (`VERSION_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for version_att
-- ----------------------------
CREATE TABLE `version_att` (
  `VERSION_ATT_ID` int(30) NOT NULL auto_increment,
  `FILE_NAME` varchar(255) NOT NULL,
  `FILE_PATH` varchar(255) default NULL,
  `CATEGORY` varchar(30) default NULL,
  `FILE_SIZE` varchar(30) default NULL,
  `VERSION_ID` int(4) default NULL,
  PRIMARY KEY  (`VERSION_ATT_ID`),
  KEY `FK_VERSION_ATT` (`VERSION_ID`),
  CONSTRAINT `version_att_ibfk_1` FOREIGN KEY (`VERSION_ID`) REFERENCES `version` (`VERSION_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=109 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Table structure for version_update
-- ----------------------------
CREATE TABLE `version_update` (
  `version_up_id` int(11) NOT NULL auto_increment,
  `from_id` int(11) default NULL,
  `to_id` int(11) default NULL,
  `is_update` int(1) default '0',
  `force_update` int(1) default '0',
  `script_path` varchar(50) default NULL,
  `to_vernum` varchar(20) default NULL,
  PRIMARY KEY  (`version_up_id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=gbk;

-- ----------------------------
-- Records 
-- ----------------------------
INSERT INTO `app_rec_att` VALUES ('1', null, 'SOAP.pdf', 'mail/admin_dx/1252057802343/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '9', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('2', '1', '1.html', 'mail/admin_dx/1252057802343/SOAP.pdf/', null, '.66KB', '9', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('3', '1', 'SOAP.txt', 'mail/admin_dx/1252057802343/SOAP.pdf/txt/', null, '19.26KB', '9', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('4', null, 'SOAP.pdf', 'mail/admin_dx/1252057823562/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '10', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('5', '4', '1.html', 'mail/admin_dx/1252057823562/SOAP.pdf/', null, '.66KB', '10', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('6', '4', 'SOAP.txt', 'mail/admin_dx/1252057823562/SOAP.pdf/txt/', null, '19.26KB', '10', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('7', null, 'SOAP.pdf', 'mail/admin_dx/1252057835218/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '11', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('8', '7', '1.html', 'mail/admin_dx/1252057835218/SOAP.pdf/', null, '.66KB', '11', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('9', '7', 'SOAP.txt', 'mail/admin_dx/1252057835218/SOAP.pdf/txt/', null, '19.26KB', '11', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('10', null, 'SOAP.pdf', 'mail/admin_dx/1252057843234/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '12', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('11', '10', '1.html', 'mail/admin_dx/1252057843234/SOAP.pdf/', null, '.66KB', '12', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('12', '10', 'SOAP.txt', 'mail/admin_dx/1252057843234/SOAP.pdf/txt/', null, '19.26KB', '12', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('13', null, 'SOAP.pdf', 'mail/admin_dx/1252057854390/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '13', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('14', '13', '1.html', 'mail/admin_dx/1252057854390/SOAP.pdf/', null, '.66KB', '13', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('15', '13', 'SOAP.txt', 'mail/admin_dx/1252057854390/SOAP.pdf/txt/', null, '19.26KB', '13', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('16', null, 'SOAP.pdf', 'mail/admin_dx/1252057865750/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '14', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('17', '16', '1.html', 'mail/admin_dx/1252057865750/SOAP.pdf/', null, '.66KB', '14', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('18', '16', 'SOAP.txt', 'mail/admin_dx/1252057865750/SOAP.pdf/txt/', null, '19.26KB', '14', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('19', null, 'Excel文件.xls', 'mail/admin_dx/1252057872578/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '14', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('20', '19', '1.html', 'mail/admin_dx/1252057872578/Excel文件.xls/', null, '2.73KB', '14', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('21', null, 'WOR带图片.doc', 'mail/admin_dx/1252057881718/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '14', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('22', '21', '1.html', 'mail/admin_dx/1252057881718/WOR带图片.doc/', null, '1.05KB', '14', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('23', '21', 'WOR带图片.txt', 'mail/admin_dx/1252057881718/WOR带图片.doc/txt/', null, '4.33KB', '14', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('24', null, 'ppt文件.ppt', 'mail/admin_dx/1252057888437/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '14', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('25', '24', '1.html', 'mail/admin_dx/1252057888437/ppt文件.ppt/', null, '.67KB', '14', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('26', null, 'SOAP.pdf', 'mail/admin_dx/1252057911046/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '15', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('27', '26', '1.html', 'mail/admin_dx/1252057911046/SOAP.pdf/', null, '.66KB', '15', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('28', '26', 'SOAP.txt', 'mail/admin_dx/1252057911046/SOAP.pdf/txt/', null, '19.26KB', '15', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('29', null, 'Excel文件.xls', 'mail/admin_dx/1252057915000/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '15', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('30', '29', '1.html', 'mail/admin_dx/1252057915000/Excel文件.xls/', null, '2.73KB', '15', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('31', null, 'WOR带图片.doc', 'mail/admin_dx/1252057919390/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '15', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('32', '31', '1.html', 'mail/admin_dx/1252057919390/WOR带图片.doc/', null, '1.05KB', '15', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('33', '31', 'WOR带图片.txt', 'mail/admin_dx/1252057919390/WOR带图片.doc/txt/', null, '4.33KB', '15', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('34', null, 'ppt文件.ppt', 'mail/admin_dx/1252057923656/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '15', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('35', '34', '1.html', 'mail/admin_dx/1252057923656/ppt文件.ppt/', null, '.67KB', '15', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('36', null, 'SOAP.pdf', 'mail/admin_dx/1252057925109/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '16', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('37', '36', '1.html', 'mail/admin_dx/1252057925109/SOAP.pdf/', null, '.66KB', '16', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('38', '36', 'SOAP.txt', 'mail/admin_dx/1252057925109/SOAP.pdf/txt/', null, '19.26KB', '16', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('39', null, 'Excel文件.xls', 'mail/admin_dx/1252057930968/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '16', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('40', '39', '1.html', 'mail/admin_dx/1252057930968/Excel文件.xls/', null, '2.73KB', '16', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('41', null, 'WOR带图片.doc', 'mail/admin_dx/1252057934812/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '16', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('42', '41', '1.html', 'mail/admin_dx/1252057934812/WOR带图片.doc/', null, '1.05KB', '16', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('43', '41', 'WOR带图片.txt', 'mail/admin_dx/1252057934812/WOR带图片.doc/txt/', null, '4.33KB', '16', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('44', null, 'ppt文件.ppt', 'mail/admin_dx/1252057935250/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '16', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('45', '44', '1.html', 'mail/admin_dx/1252057935250/ppt文件.ppt/', null, '.67KB', '16', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('46', null, 'SOAP.pdf', 'mail/admin_dx/1252057940640/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '17', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('47', '46', '1.html', 'mail/admin_dx/1252057940640/SOAP.pdf/', null, '.66KB', '17', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('48', '46', 'SOAP.txt', 'mail/admin_dx/1252057940640/SOAP.pdf/txt/', null, '19.26KB', '17', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('49', null, 'Excel文件.xls', 'mail/admin_dx/1252057948031/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '17', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('50', '49', '1.html', 'mail/admin_dx/1252057948031/Excel文件.xls/', null, '2.73KB', '17', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('51', null, 'WOR带图片.doc', 'mail/admin_dx/1252057953218/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '17', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('52', '51', '1.html', 'mail/admin_dx/1252057953218/WOR带图片.doc/', null, '1.05KB', '17', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('53', '51', 'WOR带图片.txt', 'mail/admin_dx/1252057953218/WOR带图片.doc/txt/', null, '4.33KB', '17', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('54', null, 'ppt文件.ppt', 'mail/admin_dx/1252057955781/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '17', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('55', '54', '1.html', 'mail/admin_dx/1252057955781/ppt文件.ppt/', null, '.67KB', '17', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('56', null, 'SOAP.pdf', 'mail/admin_dx/1252057958968/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '18', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('57', '56', '1.html', 'mail/admin_dx/1252057958968/SOAP.pdf/', null, '.66KB', '18', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('58', '56', 'SOAP.txt', 'mail/admin_dx/1252057958968/SOAP.pdf/txt/', null, '19.26KB', '18', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('59', null, 'Excel文件.xls', 'mail/admin_dx/1252057965656/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '18', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('60', '59', '1.html', 'mail/admin_dx/1252057965656/Excel文件.xls/', null, '2.73KB', '18', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('61', null, 'WOR带图片.doc', 'mail/admin_dx/1252057972093/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '18', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('62', '61', '1.html', 'mail/admin_dx/1252057972093/WOR带图片.doc/', null, '1.05KB', '18', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('63', '61', 'WOR带图片.txt', 'mail/admin_dx/1252057972093/WOR带图片.doc/txt/', null, '4.33KB', '18', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('64', null, 'ppt文件.ppt', 'mail/admin_dx/1252057974187/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '18', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('65', '64', '1.html', 'mail/admin_dx/1252057974187/ppt文件.ppt/', null, '.67KB', '18', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('66', null, 'SOAP.pdf', 'mail/admin_dx/1252057976015/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '19', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('67', '66', '1.html', 'mail/admin_dx/1252057976015/SOAP.pdf/', null, '.66KB', '19', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('68', '66', 'SOAP.txt', 'mail/admin_dx/1252057976015/SOAP.pdf/txt/', null, '19.26KB', '19', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('69', null, 'Excel文件.xls', 'mail/admin_dx/1252057983500/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '19', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('70', '69', '1.html', 'mail/admin_dx/1252057983500/Excel文件.xls/', null, '2.73KB', '19', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('71', null, 'WOR带图片.doc', 'mail/admin_dx/1252057990078/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '19', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('72', '71', '1.html', 'mail/admin_dx/1252057990078/WOR带图片.doc/', null, '1.05KB', '19', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('73', '71', 'WOR带图片.txt', 'mail/admin_dx/1252057990078/WOR带图片.doc/txt/', null, '4.33KB', '19', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('74', null, 'ppt文件.ppt', 'mail/admin_dx/1252057993109/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '19', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('75', '74', '1.html', 'mail/admin_dx/1252057993109/ppt文件.ppt/', null, '.67KB', '19', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('76', null, 'SOAP.pdf', 'mail/admin_dx/1252057995000/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '20', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('77', '76', '1.html', 'mail/admin_dx/1252057995000/SOAP.pdf/', null, '.66KB', '20', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('78', '76', 'SOAP.txt', 'mail/admin_dx/1252057995000/SOAP.pdf/txt/', null, '19.26KB', '20', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('79', null, 'Excel文件.xls', 'mail/admin_dx/1252058001796/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '20', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('80', '79', '1.html', 'mail/admin_dx/1252058001796/Excel文件.xls/', null, '2.73KB', '20', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('81', null, 'WOR带图片.doc', 'mail/admin_dx/1252058005968/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '20', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('82', '81', '1.html', 'mail/admin_dx/1252058005968/WOR带图片.doc/', null, '1.05KB', '20', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('83', '81', 'WOR带图片.txt', 'mail/admin_dx/1252058005968/WOR带图片.doc/txt/', null, '4.33KB', '20', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('84', null, 'ppt文件.ppt', 'mail/admin_dx/1252058010609/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '20', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('85', '84', '1.html', 'mail/admin_dx/1252058010609/ppt文件.ppt/', null, '.67KB', '20', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('86', null, 'SOAP.pdf', 'mail/admin_dx/1252058012046/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '21', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('87', '86', '1.html', 'mail/admin_dx/1252058012046/SOAP.pdf/', null, '.66KB', '21', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('88', '86', 'SOAP.txt', 'mail/admin_dx/1252058012046/SOAP.pdf/txt/', null, '19.26KB', '21', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('89', null, 'Excel文件.xls', 'mail/admin_dx/1252058017281/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '21', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('90', '89', '1.html', 'mail/admin_dx/1252058017281/Excel文件.xls/', null, '2.73KB', '21', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('91', null, 'WOR带图片.doc', 'mail/admin_dx/1252058022828/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '21', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('92', '91', '1.html', 'mail/admin_dx/1252058022828/WOR带图片.doc/', null, '1.05KB', '21', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('93', '91', 'WOR带图片.txt', 'mail/admin_dx/1252058022828/WOR带图片.doc/txt/', null, '4.33KB', '21', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('94', null, 'ppt文件.ppt', 'mail/admin_dx/1252058025171/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '21', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('95', '94', '1.html', 'mail/admin_dx/1252058025171/ppt文件.ppt/', null, '.67KB', '21', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('96', null, 'SOAP.pdf', 'mail/admin_dx/1252288857984/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '22', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('97', '96', '1.html', 'mail/admin_dx/1252288857984/SOAP.pdf/', null, '.66KB', '22', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('98', '96', 'SOAP.txt', 'mail/admin_dx/1252288857984/SOAP.pdf/txt/', null, '19.26KB', '22', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('99', null, 'Excel文件.xls', 'mail/admin_dx/1252288870734/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '22', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('100', '99', '1.html', 'mail/admin_dx/1252288870734/Excel文件.xls/', null, '2.73KB', '22', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('101', null, 'WOR带图片.doc', 'mail/admin_dx/1252288878359/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '22', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('102', '101', '1.html', 'mail/admin_dx/1252288878359/WOR带图片.doc/', null, '1.05KB', '22', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('103', '101', 'WOR带图片.txt', 'mail/admin_dx/1252288878359/WOR带图片.doc/txt/', null, '4.33KB', '22', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('104', null, 'ppt文件.ppt', 'mail/admin_dx/1252288884953/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '22', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('105', '104', '1.html', 'mail/admin_dx/1252288884953/ppt文件.ppt/', null, '.67KB', '22', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('106', null, 'SOAP.pdf', 'mail/admin_dx/1252288898515/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '23', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('107', '106', '1.html', 'mail/admin_dx/1252288898515/SOAP.pdf/', null, '.66KB', '23', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('108', '106', 'SOAP.txt', 'mail/admin_dx/1252288898515/SOAP.pdf/txt/', null, '19.26KB', '23', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('109', null, 'Excel文件.xls', 'mail/admin_dx/1252288904703/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '23', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('110', '109', '1.html', 'mail/admin_dx/1252288904703/Excel文件.xls/', null, '2.73KB', '23', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('111', null, 'WOR带图片.doc', 'mail/admin_dx/1252288907937/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '23', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('112', '111', '1.html', 'mail/admin_dx/1252288907937/WOR带图片.doc/', null, '1.05KB', '23', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('113', '111', 'WOR带图片.txt', 'mail/admin_dx/1252288907937/WOR带图片.doc/txt/', null, '4.33KB', '23', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('114', null, 'ppt文件.ppt', 'mail/admin_dx/1252288910656/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '23', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('115', '114', '1.html', 'mail/admin_dx/1252288910656/ppt文件.ppt/', null, '.67KB', '23', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('116', null, 'SOAP.pdf', 'mail/admin_dx/1252308556453/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '24', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('117', '116', '1.html', 'mail/admin_dx/1252308556453/SOAP.pdf/', null, '.63KB', '24', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('118', '116', 'SOAP.txt', 'mail/admin_dx/1252308556453/SOAP.pdf/txt/', null, '19.26KB', '24', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('119', null, 'Excel文件.xls', 'mail/admin_dx/1252308567562/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '24', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('120', '119', '1.html', 'mail/admin_dx/1252308567562/Excel文件.xls/', null, '2.69KB', '24', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('121', null, 'WOR带图片.doc', 'mail/admin_dx/1252308578609/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '24', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('122', '121', '1.html', 'mail/admin_dx/1252308578609/WOR带图片.doc/', null, '1.01KB', '24', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('123', '121', 'WOR带图片.txt', 'mail/admin_dx/1252308578609/WOR带图片.doc/txt/', null, '4.33KB', '24', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('124', null, 'ppt文件.ppt', 'mail/admin_dx/1252308584062/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '24', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('125', '124', '1.html', 'mail/admin_dx/1252308584062/ppt文件.ppt/', null, '.63KB', '24', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('126', null, 'WOR带图片.doc', 'mail/admin_dx/1252401547968/WOR带图片.doc/', 'MAIL_ATTACH', '1.31MB', '25', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('127', '126', '1.html', 'mail/admin_dx/1252401547968/WOR带图片.doc/', null, '1.01KB', '25', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('128', '126', 'WOR带图片.txt', 'mail/admin_dx/1252401547968/WOR带图片.doc/txt/', null, '39.52KB', '25', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('129', null, 'show me the meaning of being lonely .mp3', 'mail/admin_dx/1253163612750/show me the meaning of being lonely .mp3/', 'MAIL_ATTACH', '3.58MB', '27', 'mp3', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('130', null, 'WOR带图片.doc', 'mail/admin_dx/1253163618734/WOR带图片.doc/', 'MAIL_ATTACH', '1.31MB', '28', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('131', '130', '1.html', 'mail/admin_dx/1253163618734/WOR带图片.doc/', null, '1.01KB', '28', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('132', '130', 'WOR带图片.txt', 'mail/admin_dx/1253163618734/WOR带图片.doc/txt/', null, '39.52KB', '28', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('133', null, 'WOR带图片1.doc', 'mail/admin_dx/1253163631562/WOR带图片1.doc/', 'MAIL_ATTACH', '2.70MB', '28', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('134', '133', '1.html', 'mail/admin_dx/1253163631562/WOR带图片1.doc/', null, '1.01KB', '28', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('135', '133', 'WOR带图片1.txt', 'mail/admin_dx/1253163631562/WOR带图片1.doc/txt/', null, '27.67KB', '28', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('136', null, 'WOR带图片2.doc', 'mail/admin_dx/1253163637125/WOR带图片2.doc/', 'MAIL_ATTACH', '1.07MB', '28', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('137', '136', '1.html', 'mail/admin_dx/1253163637125/WOR带图片2.doc/', null, '1.01KB', '28', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('138', '136', 'WOR带图片2.txt', 'mail/admin_dx/1253163637125/WOR带图片2.doc/txt/', null, '13.82KB', '28', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('139', null, 'SOAP.pdf', 'mail/admin_dx/1253495263281/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '29', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('140', '139', '1.html', 'mail/admin_dx/1253495263281/SOAP.pdf/', null, '.63KB', '29', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('141', '139', 'SOAP.txt', 'mail/admin_dx/1253495263281/SOAP.pdf/txt/', null, '19.26KB', '29', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('142', null, 'Excel文件.xls', 'mail/admin_dx/1253495278875/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '29', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('143', '142', '1.html', 'mail/admin_dx/1253495278875/Excel文件.xls/', null, '2.69KB', '29', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('144', null, 'WOR带图片.doc', 'mail/admin_dx/1253495289906/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '29', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('145', '144', '1.html', 'mail/admin_dx/1253495289906/WOR带图片.doc/', null, '1.01KB', '29', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('146', '144', 'WOR带图片.txt', 'mail/admin_dx/1253495289906/WOR带图片.doc/txt/', null, '4.33KB', '29', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('147', null, 'ppt文件.ppt', 'mail/admin_dx/1253495293562/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '29', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('148', '147', '1.html', 'mail/admin_dx/1253495293562/ppt文件.ppt/', null, '.63KB', '29', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('149', null, 'SOAP.pdf', 'mail/admin_dx/1253495315828/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '30', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('150', '149', '1.html', 'mail/admin_dx/1253495315828/SOAP.pdf/', null, '.63KB', '30', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('151', '149', 'SOAP.txt', 'mail/admin_dx/1253495315828/SOAP.pdf/txt/', null, '19.26KB', '30', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('152', null, 'Excel文件.xls', 'mail/admin_dx/1253495323609/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '30', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('153', '152', '1.html', 'mail/admin_dx/1253495323609/Excel文件.xls/', null, '2.69KB', '30', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('154', null, 'WOR带图片.doc', 'mail/admin_dx/1253495329343/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '30', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('155', '154', '1.html', 'mail/admin_dx/1253495329343/WOR带图片.doc/', null, '1.01KB', '30', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('156', '154', 'WOR带图片.txt', 'mail/admin_dx/1253495329343/WOR带图片.doc/txt/', null, '4.33KB', '30', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('157', null, 'ppt文件.ppt', 'mail/admin_dx/1253495331906/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '30', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('158', '157', '1.html', 'mail/admin_dx/1253495331906/ppt文件.ppt/', null, '.63KB', '30', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('159', null, 'SOAP.pdf', 'mail/admin_dx/1253495334625/SOAP.pdf/', 'MAIL_ATTACH', '176.33KB', '31', 'pdf', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('160', '159', '1.html', 'mail/admin_dx/1253495334625/SOAP.pdf/', null, '.63KB', '31', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('161', '159', 'SOAP.txt', 'mail/admin_dx/1253495334625/SOAP.pdf/txt/', null, '19.26KB', '31', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('162', null, 'Excel文件.xls', 'mail/admin_dx/1253495340625/Excel文件.xls/', 'MAIL_ATTACH', '113.00KB', '31', 'xls', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('163', '162', '1.html', 'mail/admin_dx/1253495340625/Excel文件.xls/', null, '2.69KB', '31', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('164', null, 'WOR带图片.doc', 'mail/admin_dx/1253495348015/WOR带图片.doc/', 'MAIL_ATTACH', '308.50KB', '31', 'doc', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('165', '164', '1.html', 'mail/admin_dx/1253495348015/WOR带图片.doc/', null, '1.01KB', '31', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('166', '164', 'WOR带图片.txt', 'mail/admin_dx/1253495348015/WOR带图片.doc/txt/', null, '4.33KB', '31', 'txt', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('167', null, 'ppt文件.ppt', 'mail/admin_dx/1253495348515/ppt文件.ppt/', 'MAIL_ATTACH', '172.50KB', '31', 'ppt', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('168', '167', '1.html', 'mail/admin_dx/1253495348515/ppt文件.ppt/', null, '.63KB', '31', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('169', null, 'Flower.jpg', 'mail/admin_dx/1259811175937/Flower.jpg/', 'MAIL_ATTACH', '40.03KB', '35', 'jpg', '1', 'MAIL_ATTACH', '');
INSERT INTO `app_rec_att` VALUES ('170', '169', '1.html', 'mail/admin_dx/1259811175937/Flower.jpg/', null, '.00KB', '35', 'html', '0', 'MAIL_ATTACH', '');
INSERT INTO `application` VALUES ('4', '59', 'POP3邮件', '通过SMPT、POP3实现邮件的收发', 'MAIL', '1');
INSERT INTO `application` VALUES ('59', null, '电信OA', '上海电信OA', 'OA', '0');
INSERT INTO `application` VALUES ('60', '59', '登录', '登录系统', 'Login', '1');
INSERT INTO `application` VALUES ('61', '59', '公告', '公告列表', 'Bulletin', '1');
INSERT INTO `application` VALUES ('62', '59', 'HTTP邮件', '通过HTTP协议实现邮件的收发', 'httpmail', '1');
INSERT INTO `application` VALUES ('64', '59', '公司通讯录', '公司通讯录', 'AddressList', '1');
INSERT INTO `application` VALUES ('65', '59', '公文管理', '公文管理', 'task', '1');
INSERT INTO `application` VALUES ('66', '59', '会议室管理', '会议室管理', 'notice', '1');
INSERT INTO `application` VALUES ('67', '59', '主页面', '主页面', 'mainPage', '1');
INSERT INTO `application` VALUES ('70', null, '电子政务', '电子政务', 'DigitalGov', '0');
INSERT INTO `application` VALUES ('71', '70', '登录', '登录系统', 'Login_Gov', '1');
INSERT INTO `application` VALUES ('73', '70', '信息快报', '信息快报', 'InformationLetters', '1');
INSERT INTO `application` VALUES ('75', '70', '公文办理', '公文办理', 'Documents_Gov', '1');
INSERT INTO `application` VALUES ('76', '70', '领导指示', '领导指示', 'LeaderPointing', '1');
INSERT INTO `application` VALUES ('77', '70', '专送传阅', '专送传阅', 'SpecialReading', '1');
INSERT INTO `application` VALUES ('78', '70', '通知管理 ', '通知管理 ', 'NoticeManage', '1');
INSERT INTO `application` VALUES ('80', '70', '行政效能', '行政效能', 'Administrative', '1');
INSERT INTO `application` VALUES ('81', '70', '日程安排', '日程安排', 'Shedule', '1');
INSERT INTO `application` VALUES ('82', '70', '通讯录', '通讯录', 'AddressList_Gov', '1');
INSERT INTO `application` VALUES ('83', '70', '系统配置', '系统配置', 'SystemCfg', '1');
INSERT INTO `application_prof` VALUES ('BS_SESSION_TIME_OUT_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"text\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n<xsl:variable name=\"flag\" select=\"//TABLE/TR[1]/TD/FONT[1]/text()\"/>\r\n<xsl:variable name=\"flag1\" select=\"//TABLE/TR[1]/TD/INPUT/@value\"/>\r\n<xsl:variable name=\"yes\">YES</xsl:variable>\r\n<xsl:variable name=\"no\">NO</xsl:variable>	\r\n	<xsl:if test=\"contains($flag,\'用户名\') and contains($flag1,\'登陆\')\">\r\n	<xsl:value-of select=\"$yes\"/>\r\n	</xsl:if>		\r\n	<xsl:if test=\"not(contains($flag,\'用户名\') and contains($flag1,\'登陆\'))\">\r\n	<xsl:value-of select=\"$no\"/>\r\n	</xsl:if>\r\n</xsl:template>\r\n</xsl:stylesheet> ', '110', '59');
INSERT INTO `application_prof` VALUES ('公司发文', 'GsOutMsgOffDetail', '111', '59');
INSERT INTO `application_prof` VALUES ('公文签报', 'QbOutMsgOffDetail', '112', '59');
INSERT INTO `application_prof` VALUES ('部门发文', 'BmOutMsgOffDetail', '113', '59');
INSERT INTO `application_prof` VALUES ('党委发文', 'DwOutMsgOffDetail', '114', '59');
INSERT INTO `application_prof` VALUES ('工会发文', 'GhOutMsgOffDetail', '115', '59');
INSERT INTO `application_prof` VALUES ('纪委发文', 'JwOutMsgOffDetail', '116', '59');
INSERT INTO `application_prof` VALUES ('公司级重要发文', 'GsjOutMsgOffDetail', '117', '59');
INSERT INTO `application_prof` VALUES ('网发部批复发文（公司）', 'WfbOutMsgOffDetail', '118', '59');
INSERT INTO `application_prof` VALUES ('党委部门发文', 'DwbmOutMsgOffDetail', '119', '59');
INSERT INTO `application_prof` VALUES ('总部收入合同管理', 'ZbsrOffDetail', '120', '59');
INSERT INTO `application_prof` VALUES ('总部支付合同管理', 'ZbzcOffDetail', '121', '59');
INSERT INTO `application_prof` VALUES ('移动建设部收入合同管理', 'YdjssrOffDetail', '122', '59');
INSERT INTO `application_prof` VALUES ('移动建设部支付合同管理', 'YdjszcOffDetail', '123', '59');
INSERT INTO `application_prof` VALUES ('网运部收入合同管理', 'WybsrOffDetail', '124', '59');
INSERT INTO `application_prof` VALUES ('网运部支付合同管理', 'WybzcOffDetail', '125', '59');
INSERT INTO `application_prof` VALUES ('网发部其他收入特殊合同', 'WfbsrOffDetail', '126', '59');
INSERT INTO `application_prof` VALUES ('网发部其他支付特殊合同', 'WfbzcOffDetail', '127', '59');
INSERT INTO `application_prof` VALUES ('公司发文', 'GsOutMsgOffDetail', '128', '59');
INSERT INTO `application_prof` VALUES ('公文签报', 'QbOutMsgOffDetail', '129', '59');
INSERT INTO `application_prof` VALUES ('部门发文', 'BmOutMsgOffDetail', '130', '59');
INSERT INTO `application_prof` VALUES ('党委发文', 'DwOutMsgOffDetail', '131', '59');
INSERT INTO `application_prof` VALUES ('工会发文', 'GhOutMsgOffDetail', '132', '59');
INSERT INTO `application_prof` VALUES ('纪委发文', 'JwOutMsgOffDetail', '133', '59');
INSERT INTO `application_prof` VALUES ('公司级重要发文', 'GsjOutMsgOffDetail', '134', '59');
INSERT INTO `application_prof` VALUES ('网发部批复发文（公司）', 'WfbOutMsgOffDetail', '135', '59');
INSERT INTO `application_prof` VALUES ('党委部门发文', 'DwbmOutMsgOffDetail', '136', '59');
INSERT INTO `application_prof` VALUES ('总部收入合同管理', 'ZbsrOffDetail', '137', '59');
INSERT INTO `application_prof` VALUES ('总部支付合同管理', 'ZbzcOffDetail', '138', '59');
INSERT INTO `application_prof` VALUES ('移动建设部收入合同管理', 'YdjssrOffDetail', '139', '59');
INSERT INTO `application_prof` VALUES ('移动建设部支付合同管理', 'YdjszcOffDetail', '140', '59');
INSERT INTO `application_prof` VALUES ('网运部收入合同管理', 'WybsrOffDetail', '141', '59');
INSERT INTO `application_prof` VALUES ('网运部支付合同管理', 'WybzcOffDetail', '142', '59');
INSERT INTO `application_prof` VALUES ('网发部其他收入特殊合同', 'WfbsrOffDetail', '143', '59');
INSERT INTO `application_prof` VALUES ('网发部其他支付特殊合同', 'WfbzcOffDetail', '144', '59');
INSERT INTO `application_prof` VALUES ('工程部施工收入合同管理', 'GcbsrOffDetail', '145', '59');
INSERT INTO `application_prof` VALUES ('工程部施工支付合同管理', 'GcbzcOffDetail', '146', '59');
INSERT INTO `application_prof` VALUES ('采购中心收入合同管理', 'CgZxsrOffDetail', '147', '59');
INSERT INTO `application_prof` VALUES ('采购中心支付合同管理', 'CgZxzcOffDetail', '148', '59');
INSERT INTO `application_prof` VALUES ('采购中心统谈合同', 'CgZxttOffDetail', '149', '59');
INSERT INTO `application_prof` VALUES ('行政处收入合同管理', 'XzcsrOffDetail', '150', '59');
INSERT INTO `application_prof` VALUES ('行政处支付合同管理', 'XzczcOffDetail', '151', '59');
INSERT INTO `application_prof` VALUES ('大客户部收入合同管理', 'DkhsrOffDetail', '152', '59');
INSERT INTO `application_prof` VALUES ('大客户部支付合同管理', 'DkhzcOffDetail', '153', '59');
INSERT INTO `application_prof` VALUES ('市场部收入合同管理', 'ScbsrOffDetail', '154', '59');
INSERT INTO `application_prof` VALUES ('市场部支付合同管理', 'ScbzcOffDetail', '155', '59');
INSERT INTO `application_prof` VALUES ('家客部收入合同管理', 'JkbsrOffDetail', '156', '59');
INSERT INTO `application_prof` VALUES ('家客部支付合同管理', 'JkbzcOffDetail', '157', '59');
INSERT INTO `application_prof` VALUES ('公司收文', 'GsInMsgOffDetail', '158', '59');
INSERT INTO `application_prof` VALUES ('部门收文', 'BmInMsgOffDetail', '159', '59');
INSERT INTO `application_prof` VALUES ('党委收文', 'DwInMsgOffDetail', '160', '59');
INSERT INTO `application_prof` VALUES ('公务电子邮件', 'GwMailOffDetail', '161', '59');
INSERT INTO `application_prof` VALUES ('会议通知', 'HytzOffDetail', '162', '59');
INSERT INTO `application_prof` VALUES ('咨询类项目申请', 'ZxlxmOffDetail', '163', '59');
INSERT INTO `application_prof` VALUES ('关联交易预算调整审批', 'GljyystzOffDetail', '164', '59');
INSERT INTO `application_prof` VALUES ('关联交易集中预算分解审批', 'GljyjzysfjOffDetail', '165', '59');
INSERT INTO `application_prof` VALUES ('预算调整审批', 'YstzOffDetail', '166', '59');
INSERT INTO `application_prof` VALUES ('集中预算分解审批', 'JzysfjOffDetail', '167', '59');
INSERT INTO `application_prof` VALUES ('专题会议纪要', 'ZthyjyOffDetail', '168', '59');
INSERT INTO `application_prof` VALUES ('普通邮件', '1', '169', '62');
INSERT INTO `application_prof` VALUES ('公务邮件', '2', '170', '62');
INSERT INTO `application_prof` VALUES ('会议通知', '3', '171', '62');
INSERT INTO `application_prof` VALUES ('GsOutMsgOffDetail', '01', '172', '59');
INSERT INTO `application_prof` VALUES ('GsInMsgOffDetail', '02', '173', '59');
INSERT INTO `application_prof` VALUES ('REPAIR_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n			<map key=\'Data\'>\r\n				<info key=\'Info\'><xsl:value-of select=\"/HTML/BODY/text()\"></xsl:value-of></info>\r\n			</map>\r\n			\r\n		</map>\r\n</xsl:template>\r\n</xsl:stylesheet>', '174', '70');
INSERT INTO `application_prof` VALUES ('TEST_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n		</map>\r\n	</xsl:template>\r\n</xsl:stylesheet>', '175', '70');
INSERT INTO `application_prof` VALUES ('SELECT_USER_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n			<map key=\'Data\'>\r\n				<info key=\'entity\'><xsl:value-of select=\"/HTML/BODY/DIV[@id=\'entity\']\"></xsl:value-of></info>\r\n				<info key=\'user\'><xsl:value-of select=\"/HTML/BODY/DIV[@id=\'user\']\"></xsl:value-of></info>\r\n			</map>\r\n			\r\n		</map>\r\n</xsl:template>\r\n</xsl:stylesheet>', '176', '70');
INSERT INTO `data_msg` VALUES ('1', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&27DB16516A4DEE814825766C002D92D8', '\'公文\'', '\'01\'', '请审核《 公司发文1 》');
INSERT INTO `data_msg` VALUES ('2', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&27DB16516A4DEE814825766C002D92D8', '??', '01', '???? ????1 ?');
INSERT INTO `data_msg` VALUES ('3', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&27DB16516A4DEE814825766C002D92D8', '??', '01', '???? ????1 ?');
INSERT INTO `data_msg` VALUES ('4', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&27DB16516A4DEE814825766C002D92D8', '公文', '01', '请拟稿《 公司发文1 》');
INSERT INTO `data_msg` VALUES ('5', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('6', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请审核《 发文2 》');
INSERT INTO `data_msg` VALUES ('7', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('8', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('9', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('10', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('11', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('12', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('13', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('14', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('15', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请审核《 发文2 》');
INSERT INTO `data_msg` VALUES ('16', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('17', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('18', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&C65BD5AEC5A147E5482575EE001291F4', '公文', '01', '请批办《 申银万国现场方案 》');
INSERT INTO `data_msg` VALUES ('19', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('20', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请审核《 发文2 》');
INSERT INTO `data_msg` VALUES ('21', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('22', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请审核《 发文2 》');
INSERT INTO `data_msg` VALUES ('23', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('24', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请审核《 发文2 》');
INSERT INTO `data_msg` VALUES ('25', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('26', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请审核《 发文2 》');
INSERT INTO `data_msg` VALUES ('27', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('28', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请审核《 发文2 》');
INSERT INTO `data_msg` VALUES ('29', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('30', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请审核《 发文2 》');
INSERT INTO `data_msg` VALUES ('31', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('32', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&234050540FF8D8C1482576720033C53E', '公文', '01', '请拟稿《 发文2 》');
INSERT INTO `data_msg` VALUES ('33', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('34', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('35', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('36', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('37', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('38', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('39', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('40', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('41', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('42', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('43', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('44', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('45', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('46', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('47', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('48', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('49', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('50', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('51', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('52', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('53', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('54', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('55', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('56', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('57', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('58', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('59', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('60', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('61', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('62', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('63', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('64', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('65', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('66', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('67', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('68', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请分办《 商务领航 》');
INSERT INTO `data_msg` VALUES ('69', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&FDE11243B5363F88482575BC002BA471', '公文', '01', '请批办《 号码百事通 》');
INSERT INTO `data_msg` VALUES ('70', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&55C8B41FE7151027482575BE000B8035', '公文', '01', '请文字核稿《 商务领行 》');
INSERT INTO `data_msg` VALUES ('71', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&7CF02031BA1AF9064825766C002EC2C0', '公文', '01', '请收文登录《 中国电信成立全国视讯运营中心 推天翼视讯业务 》');
INSERT INTO `data_msg` VALUES ('72', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&3DEBB574ACACA631482575BC002B742E', '公文', '01', '请收文登录《 商务领航 》');
INSERT INTO `data_msg` VALUES ('73', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&4BB4D8E852E2DECD482576B0002BA19F', '公文', '01', '请审核《 上海世博海宝 》');
INSERT INTO `data_msg` VALUES ('74', '/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&FCF6DAFCCE0D7681482576B0002EBC57', '公文', '01', '请审核《 IPTV商城“迎新春”双红月促销活动 》');
INSERT INTO `datasource` VALUES ('1', 'addresslist', '', 'db_type', 'MySQL', 'JDBC');
INSERT INTO `datasource` VALUES ('2', 'addresslist', '', 'db_url', 'jdbc:mysql://localhost:3306/telnote', 'JDBC');
INSERT INTO `datasource` VALUES ('3', 'addresslist', '', 'db_driver', 'com.mysql.jdbc.Driver', 'JDBC');
INSERT INTO `datasource` VALUES ('4', 'addresslist', '', 'db_username', 'mobileagent', '');
INSERT INTO `datasource` VALUES ('5', 'addresslist', '', 'db_password', 'mobileagent', 'JDBC');
INSERT INTO `datasource` VALUES ('6', 'addresslist', '', 'db_dstype', 'JDBC', null);
INSERT INTO `datasource` VALUES ('7', 'smsdb', '', 'db_dstype', 'JDBC', null);
INSERT INTO `datasource` VALUES ('8', 'smsdb', '', 'db_type', 'MySQL', null);
INSERT INTO `datasource` VALUES ('9', 'smsdb', '', 'db_url', 'jdbc:mysql://132.159.205.146:3306/dbadapter?useUnicode=true&characterEncoding=utf8', null);
INSERT INTO `datasource` VALUES ('10', 'smsdb', '', 'db_driver', 'com.mysql.jdbc.Driver', null);
INSERT INTO `datasource` VALUES ('11', 'smsdb', '', 'db_username', 'ema', null);
INSERT INTO `datasource` VALUES ('12', 'smsdb', '', 'db_password', '12345678', null);
INSERT INTO `datasource` VALUES ('14', 'mobilegov', '', 'db_dstype', 'JDBC', null);
INSERT INTO `datasource` VALUES ('15', 'mobilegov', '', 'db_type', 'MySQL', null);
INSERT INTO `datasource` VALUES ('16', 'mobilegov', '', 'db_url', 'jdbc:mysql://localhost:3306/mobilegov', null);
INSERT INTO `datasource` VALUES ('17', 'mobilegov', '', 'db_driver', 'com.mysql.jdbc.Driver', null);
INSERT INTO `datasource` VALUES ('18', 'mobilegov', '', 'db_username', 'mobileagent', null);
INSERT INTO `datasource` VALUES ('19', 'mobilegov', '', 'db_password', 'mobileagent', null);
INSERT INTO `datasrc_field` VALUES ('1', null, '', '', '数据源类型');
INSERT INTO `datasrc_field` VALUES ('11', '1', 'ds_type', 'JDBC', '数据源类型');
INSERT INTO `datasrc_field` VALUES ('12', '1', 'ds_type', 'JNDI', '数据源类型');
INSERT INTO `datasrc_field` VALUES ('13', '1', 'ds_type', '其它', '数据源类型');
INSERT INTO `datasrc_field` VALUES ('111', '11', 'db_manufcture', 'Oracle', '数据库');
INSERT INTO `datasrc_field` VALUES ('112', '11', 'db_manufcture', 'MySQL', '数据库');
INSERT INTO `datasrc_field` VALUES ('113', '11', 'db_manufcture', 'MS-SQLServer', '数据库');
INSERT INTO `datasrc_field` VALUES ('121', '12', 'jndi_path', 'java:comp/env/jdbc/mysql', 'JNDI路径');
INSERT INTO `datasrc_field` VALUES ('1111', '111', 'ds_driver', 'oracle.jdbc.driver.OracleDriver', '驱动名称');
INSERT INTO `datasrc_field` VALUES ('1112', '111', 'ds_url', 'jdbc:oracle:thin:@host:1521:databse', '连接URL');
INSERT INTO `datasrc_field` VALUES ('1121', '112', 'ds_driver', 'com.mysql.jdbc.Driver', '驱动名称');
INSERT INTO `datasrc_field` VALUES ('1122', '112', 'ds_url', 'jdbc:mysql://host:3306/database', '连接URL');
INSERT INTO `datasrc_field` VALUES ('1131', '113', 'ds_driver', 'com.microsoft.jdbc.sqlserver.SQLServerDriver', '驱动名称');
INSERT INTO `datasrc_field` VALUES ('1132', '113', 'ds_url', 'jdbc:microsoft:sqlserver://host:1433;Database', '连接URL');
INSERT INTO `function` VALUES ('10', '登录', '60', 'Login', '登录OA系统');
INSERT INTO `function` VALUES ('12', '任务箱列表', '65', 'TaskBoxList', '任务箱列表');
INSERT INTO `function` VALUES ('14', '公司发文', '65', 'GsOutMsgOffDetail', '公司发文');
INSERT INTO `function` VALUES ('15', '公司收文', '65', 'GsInMsgOffDetail', '公司收文');
INSERT INTO `function` VALUES ('16', '公告列表', '61', 'BulletinList', '公告列表');
INSERT INTO `function` VALUES ('17', '公告详细', '61', 'BulletinDetail', '公告详细');
INSERT INTO `function` VALUES ('18', '邮件列表', '62', 'MailList', '邮件列表');
INSERT INTO `function` VALUES ('19', '普通邮件详细', '62', 'MailDetail1', '普通邮件详细');
INSERT INTO `function` VALUES ('20', '发邮件', '62', 'SendMail', '发邮件');
INSERT INTO `function` VALUES ('21', '写邮件', '62', 'MailIndex', '写邮件');
INSERT INTO `function` VALUES ('22', '公务流转', '65', 'OffDetailOver', '公务流转');
INSERT INTO `function` VALUES ('23', '公司列表', '64', 'AddListCompany', '通讯录公司');
INSERT INTO `function` VALUES ('24', '部门列表', '64', 'AddListDepartment', '通讯录部门');
INSERT INTO `function` VALUES ('25', '个人列表', '64', 'AddListUser', '通讯录个人');
INSERT INTO `function` VALUES ('26', '个人信息', '64', 'AddListUserInfo', '通讯录个人信息');
INSERT INTO `function` VALUES ('27', '个人搜索', '64', 'AddListUserSearch', '通讯录个人搜索');
INSERT INTO `function` VALUES ('28', '会议室查询', '66', 'MeetingRoomQuery', null);
INSERT INTO `function` VALUES ('29', '会议室预订', '66', 'MeetingRoomReservation', null);
INSERT INTO `function` VALUES ('30', '公告通知', '61', 'GetLastestBulletin', '公告通知');
INSERT INTO `function` VALUES ('31', '任务通知', '65', 'GetLastestTask', '任务通知');
INSERT INTO `function` VALUES ('32', '个人通讯录列表', '62', 'AddressList', 'AddressList');
INSERT INTO `function` VALUES ('33', '接收本地邮件', '4', 'ReceiveLocalMail', '接受本地邮件');
INSERT INTO `function` VALUES ('34', 'SMTP发送邮件', '4', 'SmtpSendMail', 'SMTP发送邮件');
INSERT INTO `function` VALUES ('35', '上传附件', '62', 'SendAttachs', '上传附件');
INSERT INTO `function` VALUES ('36', '上传文件测试', '4', 'UploadFileTest', '上传文件测试');
INSERT INTO `function` VALUES ('37', '主页面', '67', 'MainPage', '主页面');
INSERT INTO `function` VALUES ('38', '版本控制', '60', 'NewVersion', '版本控制');
INSERT INTO `function` VALUES ('41', '个人邮件列表', '64', 'AddListUserMail', '通讯录个人邮件');
INSERT INTO `function` VALUES ('42', '个人邮件搜索', '64', 'AddListUserMailSearch', '通讯录个人邮件搜索');
INSERT INTO `function` VALUES ('43', '会议室日期查询', '66', 'MeetingRoomDateQuery', '会议室日期查询');
INSERT INTO `function` VALUES ('44', '会议室预订请求', '66', 'MettingRoomBookRequest', '会议室预订请求');
INSERT INTO `function` VALUES ('45', '主页面', '71', 'MainPage_Gov', '主页面');
INSERT INTO `function` VALUES ('46', '信息列表', '73', 'InformationLetterList_Gov', '信息列表');
INSERT INTO `function` VALUES ('47', '登录页', '71', 'Login_Gov', '登录页');
INSERT INTO `function` VALUES ('49', '索引', '73', 'InformationIndex_Gov', '索引');
INSERT INTO `function` VALUES ('50', '信息详细', '73', 'InformationLetterCont_Gov', '信息详细');
INSERT INTO `function` VALUES ('51', '公文列表', '75', 'DocumentList_Gov', '公文列表');
INSERT INTO `function` VALUES ('52', '公文概要', '75', 'DocumentOutline_Gov', '公文概要');
INSERT INTO `function` VALUES ('53', '传阅记录', '75', 'DocumentPassLog_Gov', '传阅记录');
INSERT INTO `function` VALUES ('55', '公文办理', '75', 'DocumentDeal_Gov', '公文办理');
INSERT INTO `function` VALUES ('56', '附件列表', '75', 'DocumentFileList_Gov', '附件列表');
INSERT INTO `function` VALUES ('57', '意见输入', '75', 'DocumentInput_Gov', '意见输入');
INSERT INTO `function` VALUES ('58', '公文内容', '75', 'DocumentContent_Gov', '公文内容');
INSERT INTO `function` VALUES ('59', '指示数目', '76', 'PointNum_Gov', '指示数目');
INSERT INTO `function` VALUES ('60', '指示或反馈列表', '76', 'PointList_Gov', '指示或反馈列表');
INSERT INTO `function` VALUES ('61', '领导指示内容', '76', 'PointContent_Gov', '领导指示内容');
INSERT INTO `function` VALUES ('62', '选择用户', '76', 'SelectUser_Gov', '选择用户');
INSERT INTO `function` VALUES ('63', '领导指示办理', '76', 'PointDeal_Gov', '');
INSERT INTO `function_prof` VALUES ('FUNCTION_TEMPLATE', '<Request><RequestInfos><Info Name=\"RequestCode\">$!{RequestCode}</Info><Info Name=\"RequestUnitCode\">$!{RequestUnitCode}</Info><Info Name=\"RequestUserLoginName\">$!{RequestUserLoginName}</Info><Info Name=\"RequestUserPassword\">$!{RequestUserPassword}</Info><Info Name=\"RequestAuthString\">$!{RequestAuthString}</Info></RequestInfos><RequestData><![CDATA[$!RequestData]]></RequestData></Request>', '28', '154', 'wm');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##会议室预定\r\n##取得请求的Webservice地址\r\n#set($webservice_url=\"$unitprof.get(\'WEBSERVICE_URL\')\")\r\n$EVENT.wsEvent.getAxisWsData($funcprof.get(\'FUNCTION_TEMPLATE\'),$webservice_url,$CONTEXT)\r\n', '28', '155', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n	<msc>\r\n	 <Head>\r\n		<Info Name=\"Code\">$ResponseInfos.get(\'Code\')</Info>\r\n		<Info Name=\"Reason\"></Info>\r\n	</Head>\r\n\r\n<Body Text=\"会议室预定\" >\r\n	<Vars>\r\n		<Var Name=\"Global:KeyMeetingRoom\"/>\r\n	</Vars>\r\n\r\n	<Actions>\r\n	#set($num = 0)\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n		<Action Name=\"MettingRoomBookRequest$num\" Code=\"cmd:SetValue(Global:KeyMeetingRoom,${fields.get(\'keyMeetingRoom\').value});url:c=MettingRoomBookRequest\"/>\r\n	#set($num = $num+1)\r\n	#end\r\n	</Actions>\r\n\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<MyListView Name=\"listView1\" TitleColor=\"#ABCDEF\" DefaultIcon=\"dot6.gif\" SelectedIcon=\"dot9-2.gif\" ItemHeight=\"40\" ScrollWidth=\"13\" ImageRect=\"0,0,60,40\" AutoScroll=\"true\" Size=\"240,268\">\r\n	#set($num = 0)\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<MyListViewItem Title=\"${fields.get(\'keyMeetingRoom\').value}\" Time=\"$!{fields.get(\'TimeRange\').value}\" Click=\"act:MettingRoomBookRequest$num\" />\r\n	#set($num = $num+1)\r\n	#end\r\n		</MyListView>\r\n	</MouseGesturePanel>\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n</Body>\r\n</msc>\r\n</Response>', '28', '156', 'wm');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##会议室查询\r\n##取得请求的Webservice地址\r\n#set($webservice_url=\"$unitprof.get(\'WEBSERVICE_URL\')\")\r\n$EVENT.wsEvent.getAxisWsData($funcprof.get(\'FUNCTION_TEMPLATE\'),$webservice_url,$CONTEXT)\r\n', '29', '157', 'wm');
INSERT INTO `function_prof` VALUES ('FUNCTION_TEMPLATE', '<Request><RequestInfos><Info Name=\"RequestCode\">$!{RequestCode}</Info><Info Name=\"RequestUnitCode\">$!{RequestUnitCode}</Info><Info Name=\"RequestUserLoginName\">$!{RequestUserLoginName}</Info><Info Name=\"RequestUserPassword\">$!{RequestUserPassword}</Info><Info Name=\"RequestAuthString\">$!{RequestAuthString}</Info></RequestInfos><RequestData><![CDATA[$!RequestData]]></RequestData></Request>', '29', '158', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n	<msc>\r\n	 <Head>\r\n		<Info Name=\'Code\'>$ResponseInfos.get(\'Code\')</Info>\r\n		<Info Name=\'Reason\'>$ResponseInfos.get(\'Reason\')</Info>\r\n	</Head>\r\n\r\n<Body Text=\"会议室预定\" >\r\n#if($ResponseInfos.get(\'Code\')==\'1\')\r\n         <Label Name=\"label1\" Location=\"10,10\" Text=\"会议室预定成功！\"/>\r\n#elseif($ResponseInfos.get(\'Code\')==\'3\')\r\n         <Label Name=\"label1\" Location=\"10,10\" Text=\"时间段冲突！请设置合适的时间段！\"/>\r\n#else\r\n         <Label Name=\"label1\" Location=\"10,10\" Text=\"错误码  +$ResponseInfos.get(\'Code\')==\'1\'\"/>\r\n#end\r\n         <MenuItem Text=\"确定\" Click=\"cmd:Back()\"/>\r\n</Body>\r\n</msc>\r\n</Response>', '29', '159', 'wm');
INSERT INTO `function_prof` VALUES ('CYCLE_DURATION', '36000000', '30', '183', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##公告通知\r\n#set($webservice_url=\"$unitprof.get(\'WEBSERVICE_URL\')\")\r\n##通过Webservice请求取得公告信息\r\n#set($dataxml=$EVENT.wsEvent.getAxisWsData($funcprof.get(\'FUNCTION_TEMPLATE\'),$webservice_url,$CONTEXT))\r\n##解析，取得公告数量\r\n$EVENT.timerEvent.parseData($dataxml,$CONTEXT)\r\n#set($num = 0)\r\n#if($records)\r\n#set($num=$records.size())\r\n#end\r\n#if($num > 0)\r\n##设置短信push格式\r\n#set($con=\"DATA:公告=${num}!\")\r\n##触发事件发送短信\r\n$EVENT.smsEvent.sendUnitAppSMS($con,$CONTEXT)\r\n#end', '30', '184', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'TIMER_INVOKE', '30', '185', null);
INSERT INTO `function_prof` VALUES ('FUNCTION_TEMPLATE', '<Request><RequestInfos><Info Name=\"RequestCode\">$!{RequestCode}</Info><Info Name=\"RequestUnitCode\">$!{RequestUnitCode}</Info><Info Name=\"RequestUserLoginName\">$!{RequestUserLoginName}</Info><Info Name=\"RequestUserPassword\">$!{RequestUserPassword}</Info><Info Name=\"RequestAuthString\">$!{RequestAuthString}</Info></RequestInfos><RequestData></RequestData></Request>', '30', '186', null);
INSERT INTO `function_prof` VALUES ('CYCLE_DURATION', '36000000', '31', '192', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##任务通知\r\n#set($webservice_url=\"$unitprof.get(\'WEBSERVICE_URL\')\")\r\n#set($dataxml=$EVENT.wsEvent.getAxisWsData($funcprof.get(\'FUNCTION_TEMPLATE\'),$webservice_url,$CONTEXT))\r\n##解析数据\r\n$EVENT.timerEvent.parseData($dataxml,$CONTEXT)\r\n##\r\n##用户名	\r\n#set($username = \"\")\r\n##标题\r\n#set($content = \"\")\r\n##短信功能编码\r\n#set($da_funcnum = \"\")\r\n##短信映射id\r\n#set($db_id = 0)\r\n##数据库信息\r\n#set($sql=\"insert data_msg(msgid,appname,funcname,content) values (?,?,?,?)\")\r\n#set($dbsource = \"mobilegov\")\r\n#set($para=\"\")\r\n##遍历发送短信\r\n#foreach($record in $records)\r\n#set($da_msgid = ${record.MSGID})\r\n#if($da_msgid.length() > 0){\r\n#set($da_msgid = $da_msgid.substring(5))	\r\n#set($da_msgid = \"/dxgsweboa/system/taskbox.nsf/TaskHandleMobile?OpenAgent&$da_msgid\")		\r\n##用户名	\r\n#set($username = $record.fields.get(\'Task_TaskUser\').value)\r\n##标题\r\n#set($content = $record.fields.get(\'Task_Subject\').value)\r\n##功能名称\r\n#set($da_funcname = $record.fields.get(\'Task_Title\').value)\r\n##$EVENT.envEvent.logger($da_funcname)\r\n#set($da_funccode = $appprof.get($da_funcname))\r\n##$EVENT.envEvent.logger($da_funccode)\r\n#set($da_funcnum = $appprof.get($da_funccode))\r\n##$EVENT.envEvent.logger($da_funcnum)\r\n##存储数据msgid\r\n#set($para=\"VARCHAR=$da_msgid;VARCHAR=公文;VARCHAR=01;VARCHAR=$content\")\r\n#set($db_id=$EVENT.dbEvent.executeInsert($dbsource,$sql,$para))\r\n##短信格式\r\n#set($msg_con=\"$#$da_funcnum#公文#$db_id#$content\")\r\n##发送短信\r\n$EVENT.envEvent.logger($msg_con)\r\n$EVENT.smsEvent.sendAppUserNameSMS($msg_con,$username,$CONTEXT)\r\n#end\r\n#end', '31', '193', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'TIMER_INVOKE', '31', '194', null);
INSERT INTO `function_prof` VALUES ('FUNCTION_TEMPLATE', '<Request><RequestInfos><Info Name=\"RequestCode\">$!{RequestCode}</Info><Info Name=\"RequestUnitCode\">$!{RequestUnitCode}</Info><Info Name=\"RequestUserLoginName\">$!{RequestUserLoginName}</Info><Info Name=\"RequestUserPassword\">$!{RequestUserPassword}</Info><Info Name=\"RequestAuthString\">$!{RequestAuthString}</Info></RequestInfos><RequestData></RequestData></Request>', '31', '195', null);
INSERT INTO `function_prof` VALUES ('UPLOADXSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n			<info key=\'Reason\'></info>\r\n			<map key=\'Data\'>\r\n				<xsl:apply-templates select=\"//FORM\"/>\r\n			</map>\r\n			<info key=\"File\"><xsl:value-of select=\"//FORM/INPUT[@type=\'file\']/@name\"/></info> \r\n			<info key=\"Url\"><xsl:value-of select=\"//FORM/@action\"/></info> \r\n		</map>\r\n	</xsl:template>\r\n	<xsl:template match=\"//FORM\">\r\n	<xsl:for-each select=\"INPUT\">		\r\n		<xsl:variable name=\"li\"><![CDATA[<info key=\"]]></xsl:variable>\r\n		<xsl:variable name=\"lo\"><![CDATA[\">]]></xsl:variable>\r\n		<xsl:variable name=\"lr\"><![CDATA[</info>]]></xsl:variable>\r\n			<xsl:if test=\"string-length(@name) &gt; 0 and (@type!=\'button\' and @type!=\'file\')\">\r\n			<xsl:value-of select=\"$li\" disable-output-escaping=\"yes\"/>\r\n			<xsl:value-of select=\"@name\"/> \r\n			<xsl:value-of select=\"$lo\" disable-output-escaping=\"yes\" />\r\n			<xsl:value-of select=\"@value\"/>\r\n			<xsl:value-of select=\"$lr\" disable-output-escaping=\"yes\"/>\r\n			</xsl:if>\r\n		</xsl:for-each>			\r\n	</xsl:template>\r\n</xsl:stylesheet>\r\n', '36', '394', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##上传文件\r\n#set($xsl=$funcprof.get(\'UPLOADXSL\'))\r\n##\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')/dzweboa/application/fawen.nsf/FileAttach?OpenForm\" )\r\n#set( $fun_method = \"GET\" )\r\n#set( $fundata = $EVENT.bsEvent.getData($fun_method,\'\',$fun_url,$xsl,$CONTEXT) )\r\n##\r\n#set($stringmap=$fundata.get(\'Data\'))\r\n#set($fun_url=$fundata.get(\'Url\'))\r\n#set($fun_file=$fundata.get(\'File\'))\r\n#set($fileMap=$EVENT.envEvent.getMap())\r\n#set($fileMap =$fileMap.put($fun_file,\'d:/11.txt\'))\r\n##\r\n#set($fun_url=\"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$fun_url\")\r\n#set( $fun_method = \"POST\" )\r\n#set( $fundata =$EVENT.bsEvent.uploadFile($fun_method,$fileMap,$stringmap,$fun_url,$xsl,$CONTEXT) )\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">$Code</Info>\r\n		<Info Name=\"Reason\">$Reason</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n	<Record MSGID=\"\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n			<Field Name=\"Code\" type=\"string\" base64=\"0\">$Code</Field>\r\n			<Field Name=\"Reason\" type=\"string\" base64=\"0\">$Reason</Field>\r\n		</FieldList>\r\n		<AttachList>\r\n		</AttachList>\r\n	</Record>\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '36', '395', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '36', '396', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<ResponseInfos>\r\n	<Info Name=\"Code\">${fields.get(\'Code\').value}</Info>\r\n	<Info Name=\"Reason\">${fields.get(\'Reason\').value}</Info>\r\n</ResponseInfos>\r\n<ResponseData>\r\n</ResponseData>\r\n#end\r\n</Response>', '36', '397', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '43', '605', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n	<msc>\r\n	 <Head>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\"></Info>\r\n	</Head>\r\n<Body Text=\"会议室预定\" >\r\n	<Vars>\r\n		<Var Name=\"Global:SearchDate\"/>\r\n	</Vars>\r\n	<Actions>\r\n		<Action Name=\"MeetingRoomQuery0\" Code=\"cmd:SetValue(Global:SearchDate,$EVENT.envEvent.getDateFormatString(\'\',\'\',0));url:c=MeetingRoomQuery#SearchDate=Global:SearchDate\"/>\r\n		<Action Name=\"MeetingRoomQuery1\" Code=\"cmd:SetValue(Global:SearchDate,$EVENT.envEvent.getDateFormatString(\'\',\'\',1));url:c=MeetingRoomQuery#SearchDate=Global:SearchDate\"/>\r\n		<Action Name=\"MeetingRoomQuery2\" Code=\"cmd:SetValue(Global:SearchDate,$EVENT.envEvent.getDateFormatString(\'\',\'\',2));url:c=MeetingRoomQuery#SearchDate=Global:SearchDate\"/>\r\n		<Action Name=\"MeetingRoomQuery3\" Code=\"cmd:SetValue(Global:SearchDate,$EVENT.envEvent.getDateFormatString(\'\',\'\',3));url:c=MeetingRoomQuery#SearchDate=Global:SearchDate\"/>\r\n		<Action Name=\"MeetingRoomQuery4\" Code=\"cmd:SetValue(Global:SearchDate,$EVENT.envEvent.getDateFormatString(\'\',\'\',4));url:c=MeetingRoomQuery#SearchDate=Global:SearchDate\"/>\r\n		<Action Name=\"MeetingRoomQuery5\" Code=\"cmd:SetValue(Global:SearchDate,$EVENT.envEvent.getDateFormatString(\'\',\'\',5));url:c=MeetingRoomQuery#SearchDate=Global:SearchDate\"/>\r\n		<Action Name=\"MeetingRoomQuery6\" Code=\"cmd:SetValue(Global:SearchDate,$EVENT.envEvent.getDateFormatString(\'\',\'\',6));url:c=MeetingRoomQuery#SearchDate=Global:SearchDate\"/>\r\n	</Actions>\r\n\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<MyListView Name=\"listView1\" TitleColor=\"#ABCDEF\" DefaultIcon=\"dot6.gif\" SelectedIcon=\"dot9-2.gif\" ItemHeight=\"40\" ScrollWidth=\"13\" ImageRect=\"0,0,60,40\" AutoScroll=\"true\" Size=\"240,268\">\r\n			<MyListViewItem Title=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',0)\" Time=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',0)\" Click=\"act:MeetingRoomQuery0\" />\r\n			<MyListViewItem Title=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',1)\" Time=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',1)\" Click=\"act:MeetingRoomQuery1\" />\r\n			<MyListViewItem Title=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',2)\" Time=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',2)\" Click=\"act:MeetingRoomQuery2\" />\r\n			<MyListViewItem Title=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',3)\" Time=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',3)\" Click=\"act:MeetingRoomQuery3\" />\r\n			<MyListViewItem Title=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',4)\" Time=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',4)\" Click=\"act:MeetingRoomQuery4\" />\r\n			<MyListViewItem Title=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',5)\" Time=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',5)\" Click=\"act:MeetingRoomQuery5\" />\r\n			<MyListViewItem Title=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',6)\" Time=\"$EVENT.envEvent.getDateFormatString(\'\',\'\',6)\" Click=\"act:MeetingRoomQuery6\" />\r\n		</MyListView>\r\n	</MouseGesturePanel>\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n</Body>\r\n</msc>\r\n</Response>', '43', '606', 'wm');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '', '44', '610', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '44', '611', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#set($ctl1X = 2)\r\n#set($num = 13)\r\n#set($num2 = 19)\r\n#set($lineHeight = 25)\r\n#set($labelHeight=13)\r\n#set($controlHeight=23)\r\n#set($splitterWidth = 227)\r\n#set($splitterLineHeight = 2)\r\n#set($splitterHeight = 7)\r\n#set($x = 2)\r\n#set($y = 5)\r\n#set($lb1Width=60)\r\n#set($lb2Width=150)\r\n#set($lb3Width=224)\r\n#set($ctl2X=$lb1Width+5)\r\n\r\n#set($sjrHeight=$labelHeight*5)\r\n##if(${fields.get(\'CurType\').value == \'Body\')\r\n##set($MailZhuTi=\"\")\r\n\r\n<msc>\r\n<Head>\r\n            <Info Name=\"Code\">1</Info>\r\n            <Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body  Text=\"会议室预定\" BackColor=\"#FFFFFF\" Name=\"MettingRoomBookRequest\">\r\n	 ##会议内容\r\n         <Label Name=\"label1\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"会议内容* \"/>\r\n         #set($x = $ctl2X)\r\n		<TextBox Name=\"Subject\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"Global:SearchDate\"/>\r\n         \r\n	 ##会议日期\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label2\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"会议日期*\"/>\r\n         #set($x = $ctl2X)\r\n		<DateTimePicker Name=\"StartDate\" Location=\"$x,$y\" Width=\"$lb2Width\" Format=\"Custom\" CustomFormat=\"yyyy-MM-dd\" Value=\"Global:SearchDate\"/>\r\n         \r\n	 ##时间范围\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label3\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"会议日期*\"/>\r\n         #set($x = $ctl2X)\r\n		<DateTimePicker Name=\"TimeRange1\" Location=\"$x,$y\" Width=\"$lb2Width\" Format=\"Custom\" CustomFormat=\"HH:mm\" ShowUpDown=\"true\"/>\r\n         #set($y = $y+$lineHeight)\r\n		<DateTimePicker Name=\"TimeRange2\" Location=\"$x,$y\" Width=\"$lb2Width\" Format=\"Custom\" CustomFormat=\"HH:mm\" ShowUpDown=\"true\"/>\r\n         \r\n	 ##会议室\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label4\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"会议室*\"/>\r\n         #set($x = $ctl2X)\r\n		<TextBox Name=\"keyMeetingRoom\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"Global:KeyMeetingRoom\"/>\r\n         \r\n	 ##联系部门\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label5\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"联系部门\"/>\r\n         #set($x = $ctl2X)\r\n		<TextBox Name=\"Unit\" Location=\"$x,$y\" Width=\"$lb2Width\"/>\r\n         \r\n	 ##联系人\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label6\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"联系人\"/>\r\n         #set($x = $ctl2X)\r\n		<TextBox Name=\"Contactman\" Location=\"$x,$y\" Width=\"$lb2Width\"/>\r\n         \r\n	 ##联系电话\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label7\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"联系电话\"/>\r\n         #set($x = $ctl2X)\r\n		<TextBox Name=\"Phone\" Location=\"$x,$y\" Width=\"$lb2Width\"/>\r\n         \r\n	 ##主持人\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label8\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"主持人\"/>\r\n         #set($x = $ctl2X)\r\n		<TextBox Name=\"TextMeetingPerson\" Location=\"$x,$y\" Width=\"$lb2Width\"/>\r\n         \r\n	 ##参加人员\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label9\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"参加人员\"/>\r\n         #set($x = $ctl2X)\r\n		<TextBox Name=\"TextPersons\" Location=\"$x,$y\" Width=\"$lb2Width\"/>\r\n         \r\n	 ##会议人数\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label10\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"会议人数\"/>\r\n         #set($x = $ctl2X)\r\n		<TextBox Name=\"AttNum\" Location=\"$x,$y\" Width=\"$lb2Width\"/>\r\n         \r\n	 ##会议等级\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label11\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"会议等级\"/>\r\n         #set($x = $ctl2X)\r\n		<TextBox Name=\"Rate\" Location=\"$x,$y\" Width=\"$lb2Width\"/>\r\n         \r\n	 ##服务内容\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label12\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"服务内容\"/>\r\n         #set($x = $ctl2X)\r\n		<TextBox Name=\"Service\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb2Width,$sjrHeight\"/>\r\n\r\n		<Vars>\r\n			<Var Name=\"Local:line\" Value=\"-\"/>\r\n			<Var Name=\"Local:TimeRange\"/>\r\n		</Vars>\r\n		<Actions>\r\n			<Action Name=\"OK\" Code=\"cmd:AppendValue(Local:TimeRange,Local:TimeRange1.Text,Local:line,Local:TimeRange2.Text);url:c=MeetingRoomReservation#Subject=Local:Subject.Text#Unit=Local:Unit.Text#Contactman=Local:Contactman.Text#Phone=Local:Phone.Text#StartDate=Local:StartDate.Text#TimeRange=Local:TimeRange#keyMeetingRoom=Local:keyMeetingRoom.Text#TextMeetingPerson=Local:TextMeetingPerson.Text#TextPersons=Local:TextPersons.Text#AttNum=Local:AttNum.Text#Rate=Local:Rate.Text#Service=Local:Service.Text;cmd:SetValue(Local:TimeRange,)\"/>\r\n		</Actions>\r\n		<MenuItem Text=\"返回\" Click=\"cmd:Back()\" />\r\n		<MenuItem Text=\"确定\" Click=\"act:OK\"/>\r\n  </Body>\r\n</msc>\r\n</Response>', '44', '612', 'wm');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##更新版本\r\n#set($dbsource = \"mobilegov\")\r\n#set($pversion=$Req_Fields.get(\'CurVersion\'))\r\n#set($pupdateversion=$Req_Fields.get(\'CurUpdaterVersion\'))\r\n#set($pclientType=$!ClientSysType)\r\n#set($ver_id=\'\')\r\n#set($to_id=\'\')\r\n#set($force_update=\'\')\r\n#set($script_path=\'\')\r\n#set($update_file_path=\'\')\r\n#set ($update_dir = \"\")\r\n#set ($script_name = \"\")\r\n#set ($update_file_name = \"\")\r\n#set($new_ver_num=\'\')\r\n#set($new_up_ver_num=\'\')\r\n#set($server_url=\'\')\r\n##主版本ID\r\n#set($sql1 =\"select version_id from version where CLIENT_SYS_TYPE = ? and VERSION_NUM = ? and version_name != \'SmartUpdater\'\")\r\n#set($para1=\"VARCHAR=$pclientType;VARCHAR=$pversion\")\r\n#set($resu1=$EVENT.dbEvent.getResult($dbsource,$sql1,$para1))\r\n#if($resu1.size() > 0)\r\n#set($ver_id=$resu1.get(0).get(\'version_id\'))\r\n##\r\n##\r\n##升级脚本信息\r\n#set($sql2 =\"select to_id,force_update,script_path,version_num from version_update,version where to_id = version_id and from_id = ? and is_update = 1  order by version_num desc\")\r\n#set($para2=\"INT=$ver_id\")\r\n#set($resu2=$EVENT.dbEvent.getResult($dbsource,$sql2,$para2))\r\n#if($resu2.size() > 0)\r\n#set($to_id=\"$resu2.get(0).get(\'to_id\')\")\r\n#set($force_update=\"$resu2.get(0).get(\'force_update\')\")\r\n#set($script_name=${resu2.get(0).get(\'script_path\')})\r\n##$EVENT.envEvent.logger($update_file_path)\r\n#end\r\n##\r\n##\r\n#if($to_id && $to_id.length() > 0)\r\n##升级文件目录\r\n#set($sql3 =\"select file_name,file_path from version_att where version_id = ?\")\r\n#set($para3=\"INT=$to_id\")\r\n#set($resu71=$EVENT.dbEvent.getResult($dbsource,$sql3,$para3))\r\n#if($resu71.size() > 0)\r\n#set($update_dir=$resu71.get(0).get(\'file_path\'))\r\n#set($server_url = \"${url_prefix}${update_dir}\")\r\n#end\r\n##新版本编号\r\n#set($sql3 =\"select version_num  from version where version_id = ?\")\r\n#set($para3=\"INT=$to_id\")\r\n#set($resu3=$EVENT.dbEvent.getResult($dbsource,$sql3,$para3))\r\n#if($resu3.size() > 0)\r\n#set($new_ver_num=$resu3.get(0).get(\'version_num\'))\r\n#end\r\n#else\r\n#set($new_ver_num=$pversion)\r\n#end\r\n##\r\n##解析强制更新标志\r\n#if($force_update && $force_update.length() > 0)\r\n#if($force_update == 0)\r\n#set($force_update=\"false\")\r\n#else\r\n#set($force_update=\"true\")\r\n#end\r\n#end\r\n##\r\n##\r\n##升级程序版本ID\r\n#set($sql1 =\"select version_id from version where CLIENT_SYS_TYPE = ? and VERSION_NUM = ? and version_name = \'SmartUpdater\'\")\r\n#set($para1=\"VARCHAR=$pclientType;VARCHAR=$pupdateversion\")\r\n#set($resu4=$EVENT.dbEvent.getResult($dbsource,$sql1,$para1))\r\n#if($resu4.size() > 0)\r\n#set($ver_id=$resu4.get(0).get(\'version_id\'))\r\n##\r\n##\r\n##升级文件信息\r\n#set($sql2 =\"select to_id,version_num from version_update,version where to_id = version_id and from_id = ? and is_update = 1  order by version_num desc\")\r\n#set($para2=\"INT=$ver_id\")\r\n#set($resu5=$EVENT.dbEvent.getResult($dbsource,$sql2,$para2))\r\n#if($resu5.size() > 0)\r\n#set($to_id=\"$resu5.get(0).get(\'to_id\')\")\r\n##$EVENT.envEvent.logger($update_file_path)\r\n#end\r\n##\r\n##\r\n##新版本编号及升级文件路径\r\n#if($to_id && $to_id.length() > 0)\r\n#set($sql3 =\"select version_num  from version where version_id = ?\")\r\n#set($para3=\"INT=$to_id\")\r\n#set($resu6=$EVENT.dbEvent.getResult($dbsource,$sql3,$para3))\r\n#if($resu6.size() > 0)\r\n#set($new_up_ver_num=$resu6.get(0).get(\'version_num\'))\r\n#end\r\n#set($sql3 =\"select file_name,file_path from version_att where version_id = ?\")\r\n#set($para3=\"INT=$to_id\")\r\n#set($resu7=$EVENT.dbEvent.getResult($dbsource,$sql3,$para3))\r\n#if($resu7.size() > 0)\r\n#set($update_file_name=$resu7.get(0).get(\'file_name\'))\r\n#set($update_dir=$resu7.get(0).get(\'file_path\'))\r\n#set($update_file_name = \"${url_prefix}${update_dir}${update_file_name}\")\r\n#end\r\n#else\r\n#set($new_up_ver_num=$pupdateversion)\r\n#end\r\n##\r\n##\r\n#end\r\n##\r\n##\r\n#end\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n				</DataPropList >\r\n				<Record MSGID=\"\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>						\r\n					#if($script_name && $script_name.length() > 0)\r\n						<Field Name=\"NewVersion\" type=\"string\" base64=\"0\">$new_ver_num</Field>\r\n						#if($force_update==\"true\")\r\n						<Field Name=\"VersionDesc\" type=\"string\" base64=\"0\">发现新版本，需升级后才能继续运行，是否升级</Field>\r\n						#else\r\n						<Field Name=\"VersionDesc\" type=\"string\" base64=\"0\">发现新版本，是否升级</Field>			\r\n						#end\r\n						<Field Name=\"ForceFlag\" type=\"string\" base64=\"0\">$force_update</Field>\r\n						<Field Name=\"Server\" type=\"string\" base64=\"0\">$server_url</Field>\r\n						#if($update_file_name==\'\')\r\n						<Field Name=\"UpdaterVersion\" type=\"string\" base64=\"0\">$pupdateversion</Field>\r\n						<Field Name=\"UpdaterFile\" type=\"string\" base64=\"0\"></Field>\r\n						#else\r\n						<Field Name=\"UpdaterVersion\" type=\"string\" base64=\"0\">$new_up_ver_num</Field>\r\n						<Field Name=\"UpdaterFile\" type=\"string\" base64=\"0\">$update_file_name</Field>\r\n						#end\r\n						<Field Name=\"ScriptFile\" type=\"string\" base64=\"0\">$server_url$script_name</Field>\r\n					#else\r\n					<Field Name=\"NewVersion\" type=\"string\" base64=\"0\">$pversion</Field>\r\n						<Field Name=\"VersionDesc\" type=\"string\" base64=\"0\"></Field>\r\n						<Field Name=\"ForceFlag\" type=\"string\" base64=\"0\"></Field>\r\n						<Field Name=\"Server\" type=\"string\" base64=\"0\"></Field>\r\n						<Field Name=\"UpdaterVersion\" type=\"string\" base64=\"0\">$pupdateversion</Field>\r\n						<Field Name=\"UpdaterFile\" type=\"string\" base64=\"0\"></Field>\r\n						<Field Name=\"ScriptFile\" type=\"string\" base64=\"0\"></Field>						\r\n					#end\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '38', '1182', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'DB_INVOKE', '38', '1183', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<VersionInfo>\r\n	<NewVersion>${fields.get(\'NewVersion\').value}</NewVersion>\r\n	<VersionDesc>${fields.get(\'VersionDesc\').value}</VersionDesc>\r\n	<ForceFlag>${fields.get(\'ForceFlag\').value}</ForceFlag>\r\n	<Server>${fields.get(\'Server\').value}</Server>\r\n	<UpdaterVersion>${fields.get(\'UpdaterVersion\').value}</UpdaterVersion>\r\n	<UpdaterFile>${fields.get(\'UpdaterFile\').value}</UpdaterFile>\r\n	<ScriptFile>${fields.get(\'ScriptFile\').value}</ScriptFile>\r\n</VersionInfo>\r\n#end', '38', '1184', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n \r\n\r\n#set($ctl1X = 2)\r\n#set($num = 13)\r\n#set($num2 = 19)\r\n#set($lineHeight = 25)\r\n#set($labelHeight=13)\r\n#set($controlHeight=23)\r\n#set($splitterWidth = 227)\r\n#set($splitterLineHeight = 2)\r\n#set($splitterHeight = 7)\r\n#set($x = 2)\r\n#set($y = 5)\r\n#set($lb1Width=60)\r\n#set($lb2Width=150)\r\n#set($lb3Width=225)\r\n#set($ctl2X=$lb1Width+5)\r\n\r\n\r\n<msc>\r\n<Head>\r\n        <Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n	<Info Name=\"Id\">${fields.get(\'Id\').value}</Info>\r\n</Head>\r\n<Body  Text=\"公告详细信息\" BackColor=\"#FFFFFF\">\r\n    <TabControl ToolbarSize=\"240,23\" BackColor=\"255,255,255\" BackgroundImage=\"tabitem_background.bmp\"  DockType=\"Bottom\" Dock=\"Fill\"  ItemsAlignment=\"BottomLeft\">\r\n      <TabPage ImageDefault=\"tabitem_default.bmp\" BackColor=\"#ffffff\" Text=\"正文\" ImagePressed=\"tabitem_select.bmp\" AutoScroll=\"True\">\r\n         <Label Name=\"label1\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"创建人: \"/>\r\n         #set($x = $ctl2X)\r\n                <Label Name=\"textBox1\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Creatperson\').value}\"/>\r\n\r\n          #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label2\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"创建日期:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox2\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Creatdate\').value} ${fields.get(\'Creattime\').value}\"/>\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n	  <Label Name=\"label3\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"主题: \"/>\r\n         #set($x = $ctl2X)\r\n         #set($temp_c=${fields.get(\'Title\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         #if($controlHeight<$lineHeight)\r\n             #set($controlHeight = $lineHeight)\r\n         #end\r\n	 <Label Name=\"textBox3\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'Title\').value}\"/>\r\n         \r\n\r\n         #set($y = $y+$controlHeight)\r\n         <Split Name=\"splitter1\" Location=\"0,$y\" Width=\"$splitterWidth\" Height=\"$splitterLineHeight\" TopSplitColor=\"#A5DBF7\" BottomSplitColor=\"#A5DBF7\"/>\r\n        \r\n         #set($y = $y+$splitterHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label4\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"内容:\"/>\r\n         #set($x = $ctl2X)\r\n         #set($temp_c=${fields.get(\'Body\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         #if($controlHeight<$lineHeight)\r\n             #set($controlHeight = $lineHeight)\r\n         #end\r\n	 <Label Name=\"textBox4\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'Body\').value}\"/>\r\n         \r\n       \r\n         #set($y = $y+$controlHeight)\r\n        <Split Name=\"splitter2\" Location=\"0,$y\" Width=\"$splitterWidth\" Height=\"$splitterLineHeight\" TopSplitColor=\"#A5DBF7\" BottomSplitColor=\"#A5DBF7\"/>\r\n        \r\n         #set($y = $y+$splitterHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label5\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"发布部门:\"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n         #set($temp_c=${fields.get(\'Category\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num2)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))\r\n         #if($controlHeight<$lineHeight)\r\n             #set($controlHeight = $lineHeight)\r\n         #end\r\n	 <Label Name=\"textBox5\" Location=\"$x,$y\" Width=\"$lb3Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'Category\').value}\"/>\r\n         \r\n         \r\n         #set($y = $y+$controlHeight)\r\n         <Split Name=\"splitter3\" Location=\"0,$y\" Width=\"$splitterWidth\" Height=\"$splitterLineHeight\" TopSplitColor=\"#A5DBF7\" BottomSplitColor=\"#A5DBF7\"/>\r\n        \r\n         #set($y = $y+$splitterHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label6\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"联系电话:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox6\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Telephone\').value}\"/>\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label7\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"有效期限:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox7\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Validday\').value}\"/>\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label8\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"发布日期:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox8\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'IssueDate\').value}\"/>\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"labe9\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"发布时间:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox9\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Issuetime\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n    </TabPage>    \r\n    <TabPage ImageDefault=\"tabitem_default.bmp\" BackColor=\"#ffffff\" ImagePressed=\"tabitem_select.bmp\" Text=\"附件\" AutoScroll=\"True\">\r\n     #set($x = 2)\r\n     #set($y = 5)\r\n     <Attach  Location=\"$x,$y\"  Name=\"attachs1\" Width=\"220\" Source=\"\r\n        #foreach($attach in $record.attachs.get(\'attachs\'))\r\n        ${attach.get(\"Value\").trim()}|${attach.get(\"URL\")},\r\n        #end\r\n        \"/>\r\n\r\n    </TabPage>\r\n  </TabControl >    \r\n\r\n                 <MenuItem Text=\"返回\" Click=\"cmd:Back()\"/>\r\n  </Body>\r\n</msc>\r\n#end\r\n </Response>', '17', '1389', 'Brew');
INSERT INTO `function_prof` VALUES ('GGXXXSL1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n		<map key=\"Data\">\r\n			<info key=\'Code\'>1</info>\r\n			<!-- 取得公共的详细内容并进行组装-->\r\n			<map key=\'Data\'>\r\n				<info key=\"URL\">\r\n					<xsl:value-of select=\"//TABLE/TR/TD/TABLE/TR/TD/A/@href\"/>\r\n				</info>\r\n				<info key=\"Value\">\r\n					<xsl:value-of select=\"//TABLE/TR/TD/TABLE/TR/TD/A/FONT\"/>\r\n				</info>\r\n				<info key=\"Creatperson\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'CreatPerson\']/@value\"/>\r\n				</info>\r\n				<info key=\"Creatdate\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'CreatDate\']/@value\"/>\r\n				</info>\r\n				<info key=\"Creattime\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'CreatTime\']/@value\"/>\r\n				</info>\r\n				<info key=\"Title\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'Title\']/@value\"/>\r\n				</info>\r\n				<info key=\"Body\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'Body\']/@value\"/>\r\n				</info>\r\n				<info key=\"Category\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'Category\']/@value\"/>\r\n				</info>\r\n				<info key=\"Telephone\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'Telephone\']/@value\"/>\r\n				</info>\r\n				<info key=\"Validday\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'ValidDay\']/@value\"/>\r\n				</info>\r\n				<info key=\"IssueDate\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'IssueDate\']/@value\"/>\r\n				</info>\r\n				<info key=\"Issuetime\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'IssueTime\']/@value\"/>\r\n				</info>\r\n				<info key=\"ThisDB\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'ThisDB\']/@value\"/>\r\n				</info>\r\n			</map>\r\n			<xsl:if test=\"count(//A[@target=\'_blank\']) > 0\">\r\n				<map key=\'Attc\'>\r\n					<xsl:apply-templates select=\"//A[@target=\'_blank\']\"/>\r\n				</map>\r\n			</xsl:if>\r\n		</map>\r\n	</xsl:template>\r\n	<xsl:template match=\"//A[@target=\'_blank\']\">\r\n		<list key=\'Data\'>\r\n			<info key=\'tag\'>\r\n				<xsl:text>/public/bulletin.nsf/ByDate/</xsl:text>\r\n				<xsl:value-of select=\"@href\"/>\r\n			</info>\r\n			<info key=\'title\'>\r\n				<xsl:value-of select=\"FONT/text()\"/>\r\n			</info>\r\n		</list>\r\n	</xsl:template>\r\n</xsl:stylesheet>', '17', '1390', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##公告详细\r\n#set($xsl=$funcprof.get(\'GGXXXSL1\'))\r\n##解密取得邮件id信息\r\n#set($Url=$EVENT.envEvent.base64Decode($Req_Fields.get(\'Id\')))\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$Url\" )\r\n#set( $fun_method = \"GET\" )\r\n#set( $fun_post_para = \"\" )\r\n##触发事件，提交数据，取得返回信息\r\n#set( $fundata = $EVENT.bsEvent.getData($fun_method,$fun_post_para,$fun_url,$xsl,$CONTEXT) )\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n				</DataPropList >\r\n				<Record MSGID=\"\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n##遍历显示正文内容\r\n#foreach($key in $fundata.get(\'Data\').keySet())\r\n##去掉body中的特殊html字符\r\n#if($key == \'Body\')\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$EVENT.envEvent.htmlToText($fundata.get(\'Data\').get($key))</Field>\r\n#else\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$fundata.get(\'Data\').get($key)</Field>\r\n#end\r\n#end\r\n					</FieldList>\r\n					<AttachList>\r\n##输出附件的绝对URL地址及附件名称\r\n#foreach($key in $fundata.get(\'Attc\'))\r\n						<Attach URL=\"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$unitprof.get(\'BS_SYSTEM_DIR\')$key.get(\'Data\').get(\'tag\')\" format=\"\" category=\"\">$key.get(\'Data\').get(\'title\')</Attach>\r\n#end\r\n					</AttachList>\r\n				</Record>\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '17', '1391', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '17', '1392', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n \r\n\r\n#set($ctl1X = 2)\r\n#set($num = 13)\r\n#set($num2 = 19)\r\n#set($lineHeight = 25)\r\n#set($labelHeight=13)\r\n#set($controlHeight=23)\r\n#set($splitterWidth = 227)\r\n#set($splitterLineHeight = 2)\r\n#set($splitterHeight = 7)\r\n#set($x = 2)\r\n#set($y = 5)\r\n#set($lb1Width=60)\r\n#set($lb2Width=150)\r\n#set($lb3Width=225)\r\n#set($ctl2X=$lb1Width+5)\r\n\r\n\r\n<msc>\r\n<Head>\r\n        <Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n	<Info Name=\"Id\">${fields.get(\'Id\').value}</Info>\r\n</Head>\r\n<Body  Text=\"公告详细信息\" BackColor=\"#FFFFFF\">\r\n    <TabControl ToolbarSize=\"240,23\" BackColor=\"255,255,255\" BackgroundImage=\"tabitem_background.bmp\"  DockType=\"Bottom\" Dock=\"Fill\"  ItemsAlignment=\"BottomLeft\">\r\n      <TabPage ImageDefault=\"tabitem_default.bmp\" BackColor=\"#ffffff\" Text=\"正文\" ImagePressed=\"tabitem_select.bmp\" AutoScroll=\"True\">\r\n         <Label Name=\"label1\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"创建人: \"/>\r\n         #set($x = $ctl2X)\r\n                <Label Name=\"textBox1\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Creatperson\').value}\"/>\r\n\r\n          #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label2\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"创建日期:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox2\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Creatdate\').value} ${fields.get(\'Creattime\').value}\"/>\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n	  <Label Name=\"label3\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"主题: \"/>\r\n         #set($x = $ctl2X)\r\n         #set($temp_c=${fields.get(\'Title\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         #if($controlHeight<$lineHeight)\r\n             #set($controlHeight = $lineHeight)\r\n         #end\r\n	 <Label Name=\"textBox3\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'Title\').value}\"/>\r\n         \r\n\r\n         #set($y = $y+$controlHeight)\r\n         <Split Name=\"splitter1\" Location=\"0,$y\" Width=\"$splitterWidth\" Height=\"$splitterLineHeight\" TopSplitColor=\"#A5DBF7\" BottomSplitColor=\"#A5DBF7\"/>\r\n        \r\n         #set($y = $y+$splitterHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label4\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"内容:\"/>\r\n         #set($x = $ctl2X)\r\n         #set($temp_c=${fields.get(\'Body\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         #if($controlHeight<$lineHeight)\r\n             #set($controlHeight = $lineHeight)\r\n         #end\r\n	 <Label Name=\"textBox4\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'Body\').value}\"/>\r\n         \r\n       \r\n         #set($y = $y+$controlHeight)\r\n        <Split Name=\"splitter2\" Location=\"0,$y\" Width=\"$splitterWidth\" Height=\"$splitterLineHeight\" TopSplitColor=\"#A5DBF7\" BottomSplitColor=\"#A5DBF7\"/>\r\n        \r\n         #set($y = $y+$splitterHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label5\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"发布部门:\"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n         #set($temp_c=${fields.get(\'Category\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num2)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))\r\n         #if($controlHeight<$lineHeight)\r\n             #set($controlHeight = $lineHeight)\r\n         #end\r\n	 <Label Name=\"textBox5\" Location=\"$x,$y\" Width=\"$lb3Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'Category\').value}\"/>\r\n         \r\n         \r\n         #set($y = $y+$controlHeight)\r\n         <Split Name=\"splitter3\" Location=\"0,$y\" Width=\"$splitterWidth\" Height=\"$splitterLineHeight\" TopSplitColor=\"#A5DBF7\" BottomSplitColor=\"#A5DBF7\"/>\r\n        \r\n         #set($y = $y+$splitterHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label6\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"联系电话:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox6\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Telephone\').value}\"/>\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label7\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"有效期限:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox7\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Validday\').value}\"/>\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label8\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"发布日期:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox8\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'IssueDate\').value}\"/>\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"labe9\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"发布时间:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox9\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Issuetime\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n    </TabPage>    \r\n    <TabPage ImageDefault=\"tabitem_default.bmp\" BackColor=\"#ffffff\" ImagePressed=\"tabitem_select.bmp\" Text=\"附件\" AutoScroll=\"True\">\r\n     #set($x = 2)\r\n     #set($y = 5)\r\n     <Attach  Location=\"$x,$y\"  Name=\"attachs1\" Width=\"220\" Source=\"\r\n        #foreach($attach in $record.attachs.get(\'attachs\'))\r\n        ${attach.get(\"Value\").trim()}|${attach.get(\"URL\")},\r\n        #end\r\n        \"/>\r\n\r\n    </TabPage>\r\n  </TabControl >    \r\n\r\n                 <MenuItem Text=\"返回\" Click=\"cmd:Back()\"/>\r\n  </Body>\r\n</msc>\r\n#end\r\n </Response>', '17', '1393', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<ResponseInfos>\r\n	<Info Name=\"Code\">${fields.get(\'Code\').value}</Info>\r\n	<Info Name=\"Reason\">${fields.get(\'Reason\').value}</Info>\r\n</ResponseInfos>\r\n<ResponseData>\r\n</ResponseData>\r\n#end\r\n</Response>', '34', '1931', 'Brew');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##SMTP发邮件\r\n##取得邮件消息对象\r\n#set($MAIL=$EVENT.mailEvent.getMailMessage())\r\n$MAIL.setSubject($Req_Fields.get(\'subject\'))\r\n$MAIL.setMessage_to($Req_Fields.get(\'message_to\'))\r\n$MAIL.setMessage_cc($Req_Fields.get(\'message_cc\'))\r\n$MAIL.setMessage_bcc($Req_Fields.get(\'message_bcc\'))\r\n$MAIL.setMessage_body($Req_Fields.get(\'message_body\'))\r\n#set($attch=$Req_Fields.get(\'message_attchs\').split(\',\'))\r\n#set($tempf=\"\")\r\n#set($tempp=$EVENT.envEvent.getContextPath())\r\n#foreach($key in $attch)\r\n#if($key.length() > 0)\r\n#set($tempf = $tempf + ${tempp}+${key}+\",\")\r\n#end\r\n#end\r\n$EVENT.envEvent.logger($tempf)\r\n#set($attlist=$EVENT.envEvent.arrayToList($tempf.split(\',\')))\r\n$MAIL.setAttachs($attlist)\r\n\r\n##发送邮件\r\n$EVENT.mailEvent.sendUserMail($CONTEXT)\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">$Code</Info>\r\n		<Info Name=\"Reason\">$Reason</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n	<Record MSGID=\"\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n			<Field Name=\"Code\" type=\"string\" base64=\"0\">$Code</Field>\r\n			<Field Name=\"Reason\" type=\"string\" base64=\"0\">$Reason</Field>\r\n		</FieldList>\r\n		<AttachList>\r\n		</AttachList>\r\n	</Record>\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '34', '1932', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'TIMERDATA_INVOKE', '34', '1933', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<ResponseInfos>\r\n	<Info Name=\"Code\">${fields.get(\'Code\').value}</Info>\r\n	<Info Name=\"Reason\">${fields.get(\'Reason\').value}</Info>\r\n</ResponseInfos>\r\n<ResponseData>\r\n</ResponseData>\r\n#end\r\n</Response>', '34', '1934', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##通讯录个人邮件列表\r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"通讯录个人列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource1.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserMailSearch#Name=Local:searchStr.Text#Number=10\"/>\r\n		<ListView Name=\"PersonList\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" CheckBoxes=\"true\">\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'mail\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n	<Actions>\r\n		<Action Name=\"OK\" Code=\"cmd:AppendValue(Global:MailIndex.Sjr.Text,Local:PersonList.SelectedValues);cmd:Back()\"/>\r\n	</Actions>\r\n	<MenuItem Text=\"确定\" Click=\"act:OK\"/>\r\n</Body>\r\n</msc>\r\n</Response>', '41', '1935', 'Brew');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##通讯录个人邮件列表\r\n#set($dbsource = \"addresslist\")\r\n#set($pid=$Req_Fields.get(\'Id\'))\r\n#set($pnum=$Req_Fields.get(\'Number\'))\r\n#set($pcur=$Req_Fields.get(\'Cur\'))\r\n##\r\n#set($min=\'\')\r\n#set($max=\'\')\r\n##如果没有查询范围，查询本次查询的范围ID\r\n#if(!($pcur) || $pcur.length() == 0)\r\n#set($sql1 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where dept_id = ? and id > ? order by id limit ?) as user\")\r\n#set($para1=\"INT=$pid;INT=0;INT=$pnum\")\r\n#set($resu1=$EVENT.dbEvent.getResult($dbsource,$sql1,$para1))\r\n#foreach($key in $resu1)\r\n#set($min=$key.get(\'min\'))\r\n#set($max=$key.get(\'max\'))\r\n#end\r\n#else\r\n#set($str=$pcur.split(\',\'))\r\n#set($min=$EVENT.envEvent.getArrayIndex($str,0))\r\n#set($max=$EVENT.envEvent.getArrayIndex($str,1))\r\n#end\r\n##\r\n##通过范围ID查询个人信息数据\r\n#set($para=\"INT=$pid;INT=$min;INT=$max\")\r\n#set($sql=\"select id,name,mail from user_pubtel where dept_id = ? and id >= ? and id <= ? order by seq_column\")\r\n##\r\n#set( $fundata = $EVENT.dbEvent.getResult($dbsource,$sql,$para))\r\n##取得下一页ID范围\r\n#set($sql2 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where dept_id = ? and id > ? order by id desc limit ?) as user\")\r\n#set($para2=\"INT=$pid;INT=$max;INT=$pnum\")\r\n#set($resu2=$EVENT.dbEvent.getResult($dbsource,$sql2,$para2))\r\n#foreach($key in $resu2)\r\n#set($nmin=$key.get(\'min\'))\r\n#set($nmax=$key.get(\'max\'))\r\n#end\r\n#if(!$nmin || $nmin.length() ==0)\r\n#set($next=\"\")\r\n#else\r\n#set($next=\"$nmin,$nmax\")\r\n#end\r\n##取得上一页ID范围\r\n#set($sql3 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where dept_id = ? and id < ? order by id desc limit ?) as user\")\r\n#set($para3=\"INT=$pid;INT=$min;INT=$pnum\")\r\n#set($resu3=$EVENT.dbEvent.getResult($dbsource,$sql3,$para3))\r\n#foreach($key in $resu3)\r\n#set($bmin=$key.get(\'min\'))\r\n#set($bmax=$key.get(\'max\'))\r\n#end\r\n#if(!$bmin || $bmin.length() ==0)\r\n#set($back=\"\")\r\n#else\r\n#set($back=\"$bmin,$bmax\")\r\n#end\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n					<Item Name=\"Next\">$next</Item>\r\n					<Item Name=\"Back\">$back</Item>\r\n				</DataPropList >\r\n#foreach($Record in $fundata)\r\n#set($msgid=$Record.get(\'id\'))\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n						<Field Name=\"id\" type=\"string\" base64=\"0\">$msgid</Field>\r\n						<Field Name=\"name\" type=\"string\" base64=\"0\">$Record.get(\'name\')</Field>\r\n                                                                                                <Field Name=\"mail\" type=\"string\" base64=\"0\">$Record.get(\'mail\')</Field>\r\n\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n#end\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '41', '1936', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'DB_INVOKE', '41', '1937', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##通讯录个人邮件列表\r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"通讯录个人列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource1.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserMailSearch#Name=Local:searchStr.Text#Number=10\"/>\r\n		<ListView Name=\"PersonList\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" CheckBoxes=\"true\">\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'mail\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n	<Actions>\r\n		<Action Name=\"OK\" Code=\"cmd:AppendValue(Global:MailIndex.Sjr.Text,Local:PersonList.SelectedValues);cmd:Back()\"/>\r\n	</Actions>\r\n	<MenuItem Text=\"确定\" Click=\"act:OK\"/>\r\n</Body>\r\n</msc>\r\n</Response>', '41', '1938', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"通讯录个人列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource1.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserMailSearch#Name=Local:searchStr.Text#Number=10#target=_self\"/>\r\n		<ListView Name=\"PersonList\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" CheckBoxes=\"true\">\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'mail\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n	<Actions>\r\n		<Action Name=\"OK\" Code=\"cmd:AppendValue(Global:MailIndex.Sjr.Text,Local:PersonList.SelectedValues);cmd:Back()\"/>\r\n	</Actions>\r\n	<MenuItem Text=\"确定\" Click=\"act:OK\"/>\r\n</Body>\r\n</msc>\r\n</Response>', '42', '1939', 'Brew');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##个人邮件搜索\r\n#set($dbsource = \"addresslist\")\r\n#set($pname=\"%$Req_Fields.get(\'Name\')%\")\r\n#set($pnum=$Req_Fields.get(\'Number\'))\r\n#set($pcur=$Req_Fields.get(\'Cur\'))\r\n##\r\n#set($min=\"\")\r\n#set($max=\"\")\r\n##\r\n##如果没有查询范围，查询本次查询的范围ID\r\n#if(!($pcur) || $pcur.length() == 0)\r\n#set($sql1 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where name like ? and id > ? order by id limit ?) as user\")\r\n#set($para1=\"VARCHAR=$pname;INT=0;INT=$pnum\")\r\n#set($resu1=$EVENT.dbEvent.getResult($dbsource,$sql1,$para1))\r\n#foreach($key in $resu1)\r\n#set($min=$key.get(\'min\'))\r\n#set($max=$key.get(\'max\'))\r\n#end\r\n#else\r\n#set($str=$pcur.split(\',\'))\r\n#set($min=$EVENT.envEvent.getArrayIndex($str,0))\r\n#set($max=$EVENT.envEvent.getArrayIndex($str,1))\r\n#end\r\n#if($min==\"\")\r\n#set($min=\"0\")\r\n#end\r\n#if($max==\"\")\r\n#set($max=\"0\")\r\n#end\r\n##\r\n##通过范围ID查询个人信息数据\r\n#set($para=\"VARCHAR=$pname;INT=$min;INT=$max\")\r\n#set($sql=\"select id,name,mail from user_pubtel where name like ? and id >= ? and id <= ? order by seq_column\")\r\n##\r\n#set( $fundata = $EVENT.dbEvent.getResult($dbsource,$sql,$para))\r\n##取得下一页ID范围\r\n#set($sql2 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where name like ? and id > ? order by id limit ?) as user\")\r\n#set($para2=\"VARCHAR=$pname;INT=$max;INT=$pnum\")\r\n#set($resu2=$EVENT.dbEvent.getResult($dbsource,$sql2,$para2))\r\n#foreach($key in $resu2)\r\n#set($nmin=$key.get(\'min\'))\r\n#set($nmax=$key.get(\'max\'))\r\n#end\r\n#if(!$nmin || $nmin.length() ==0)\r\n#set($next=\"\")\r\n#else\r\n#set($next=\"$nmin,$nmax\")\r\n#end\r\n##取得上一页ID范围\r\n#set($sql3 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where name like ? and id < ? order by id desc limit ?) as user\")\r\n#set($para3=\"VARCHAR=$pname;INT=$min;INT=$pnum\")\r\n#set($resu3=$EVENT.dbEvent.getResult($dbsource,$sql3,$para3))\r\n#foreach($key in $resu3)\r\n#set($bmin=$key.get(\'min\'))\r\n#set($bmax=$key.get(\'max\'))\r\n#end\r\n#if(!$bmin || $bmin.length() ==0)\r\n#set($back=\"\")\r\n#else\r\n#set($back=\"$bmin,$bmax\")\r\n#end\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n					<Item Name=\"Next\">$next</Item>\r\n					<Item Name=\"Back\">$back</Item>\r\n				</DataPropList >\r\n#foreach($Record in $fundata)\r\n#set($msgid=$Record.get(\'id\'))\r\n				<Record MSGID=\"\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n						<Field Name=\"id\" type=\"string\" base64=\"0\">$msgid</Field>\r\n						<Field Name=\"name\" type=\"string\" base64=\"0\">$Record.get(\'name\')</Field>\r\n                                                                                                <Field Name=\"mail\" type=\"string\" base64=\"0\">$Record.get(\'mail\')</Field>\r\n\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n#end\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '42', '1940', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'DB_INVOKE', '42', '1941', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"通讯录个人列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource1.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserMailSearch#Name=Local:searchStr.Text#Number=10#target=_self\"/>\r\n		<ListView Name=\"PersonList\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" CheckBoxes=\"true\">\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'mail\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n	<Actions>\r\n		<Action Name=\"OK\" Code=\"cmd:AppendValue(Global:MailIndex.Sjr.Text,Local:PersonList.SelectedValues);cmd:Back()\"/>\r\n	</Actions>\r\n	<MenuItem Text=\"确定\" Click=\"act:OK\"/>\r\n</Body>\r\n</msc>\r\n</Response>', '42', '1942', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '19', '1957', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##普通邮件详细\r\n##取得此条邮件的Nextid信息\r\n#set($xsl=$funcprof.get(\'PTYJXXXSL1\'))\r\n#set($Url=$EVENT.envEvent.base64Decode($Req_Fields.get(\'Id\')))\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$Url\" )\r\n#set( $fun_method = \"POST\" )\r\n#set( $fun_post_para = \"Type,Id=Url\" )\r\n#set( $reqdata = $EVENT.bsEvent.getData($fun_method,$fun_post_para,$fun_url,$xsl,$CONTEXT) )\r\n##\r\n##通过第一次取得的NextId，构造url地址，取得邮件的详细信息\r\n#set($xsl=$funcprof.get(\'PTYJXXXSL2\'))\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$reqdata.get(\'Data\').get(\'nextid\')\" )\r\n#set( $fundata = $EVENT.bsEvent.getData($fun_method,$fun_post_para,$fun_url,$xsl,$CONTEXT) )\r\n##\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n				</DataPropList >\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n##遍历显示正文内容\r\n#foreach($key in $fundata.get(\'Data\').keySet())\r\n##去掉body中的特殊html字符\r\n#if($key == \'Body\')\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$EVENT.envEvent.htmlToText($fundata.get(\'Data\').get($key))</Field>\r\n#elseif($key == \'Sjr\')\r\n#set($temp_str=$fundata.get(\'Data\').get($key))\r\n#set($temp_int = $temp_str.indexOf(\"&lt;\"))\r\n#if($temp_int > 0)\r\n#set($temp_str = $temp_str.substring(0,$temp_int))\r\n#end\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$temp_str.trim()</Field>\r\n#elseif($key == \'Fjr\')\r\n#set($temp_str=$fundata.get(\'Data\').get($key))\r\n#set($temp_int = $temp_str.indexOf(\'&lt;\'))\r\n#if($temp_int > 0)\r\n#set($temp_int = $temp_int + 4)	\r\n#set($temp_str = $temp_str.substring($temp_int))\r\n#end\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$temp_str</Field>						\r\n#else\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$fundata.get(\'Data\').get($key)</Field>\r\n#end\r\n#end						\r\n						<Field Name=\"MailId\" type=\"string\" base64=\"0\">$reqdata.get(\'Data\').get(\'mailid\')</Field>\r\n					</FieldList>\r\n					<AttachList>\r\n##输出附件的绝对URL地址及附件名称\r\n#foreach($key in $fundata.get(\'Attc\'))\r\n						<Attach URL=\"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$key.get(\'Data\').get(\'tag\')\" format=\"\" category=\"\">$key.get(\'Data\').get(\'title\')</Attach>\r\n#end\r\n					</AttachList>\r\n				</Record>\r\n			</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '19', '1958', null);
INSERT INTO `function_prof` VALUES ('PTYJXXXSL2', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n<xsl:variable name=\"li\"><![CDATA[/]]></xsl:variable>\r\n<xsl:variable name=\"la\"><![CDATA[=]]></xsl:variable>\r\n<map key=\'Data\'>\r\n		<info key=\'Code\'>1</info>\r\n		<!-- 取得邮件详细信息并进行组装-->\r\n		<map key=\'Data\'>\r\n			<info key=\'Sjr\'>\r\n				<xsl:if test=\"contains(//INPUT[@name=\'sjr\']/@value,$li)\">\r\n				<xsl:value-of select=\"substring-before(substring-after(//INPUT[@name=\'sjr\']/@value,$la),$li)\"/>\r\n				</xsl:if>\r\n				<xsl:if test=\"not(contains(//INPUT[@name=\'sjr\']/@value,$li))\">\r\n				<xsl:value-of select=\"//INPUT[@name=\'sjr\']/@value\"/>\r\n				</xsl:if>\r\n			</info>\r\n			<info key=\'Fjr\'>\r\n			<xsl:if test=\"contains(//INPUT[@name=\'fjr\']/@value,$li)\">\r\n				<xsl:value-of select=\"substring-before(substring-after(//INPUT[@name=\'fjr\']/@value,$la),$li)\"/>\r\n				</xsl:if>\r\n				<xsl:if test=\"not(contains(//INPUT[@name=\'fjr\']/@value,$li))\">\r\n				<xsl:value-of select=\"//INPUT[@name=\'fjr\']/@value\"/>\r\n				</xsl:if>\r\n			</info>\r\n			<info key=\'ZhuTi\'><xsl:value-of select=\"//INPUT[@name=\'zhuti\']/@value\"/></info>\r\n			<info key=\'Body\'><xsl:value-of select=\"//TEXTAREA[@name=\'body\']/text()\"/></info>\r\n		</map>\r\n		<map key=\'Attc\'>\r\n				<!-- 调用匹配模版-->\r\n				<xsl:apply-templates select=\"//A[@target=\'_blank\']\"/>		\r\n		</map>\r\n</map>\r\n</xsl:template>\r\n<!-- 组装模版，取得需要的数据-->\r\n<xsl:template match=\"//A[@target=\'_blank\']\">	\r\n		<list key=\'Data\'>\r\n				<info key=\'tag\'><xsl:text></xsl:text><xsl:value-of select=\"concat(\'/mailinterface.nsf/copymailview/\',@href)\"/></info>\r\n				<info key=\'title\'><xsl:value-of select=\"./FONT/text()\"/></info>\r\n		</list>\r\n</xsl:template>\r\n\r\n</xsl:stylesheet>', '19', '1959', null);
INSERT INTO `function_prof` VALUES ('PTYJXXXSL1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n	<xsl:variable name=\"li\"><![CDATA[\']]></xsl:variable>\r\n	<map key=\"Data\">\r\n		<info key=\'Code\'>1</info>\r\n		<!-- 取得第一次返回的有用数据-->\r\n		<map key=\'Data\'>\r\n			<info key=\"nextid\"><xsl:value-of select=\"//B/text()\"/></info>\r\n			<info key=\"mailid\"><xsl:value-of select=\"substring(//B/text(),33,32)\"/></info>\r\n		</map>	\r\n	</map>	\r\n	</xsl:template>\r\n</xsl:stylesheet>', '19', '1960', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n \r\n\r\n#set($ctl1X = 2)\r\n#set($num = 13)\r\n#set($num2 = 19)\r\n#set($lineHeight = 25)\r\n#set($labelHeight=13)\r\n#set($controlHeight=23)\r\n#set($splitterWidth = 227)\r\n#set($splitterLineHeight = 2)\r\n#set($splitterHeight = 7)\r\n#set($x = 2)\r\n#set($y = 5)\r\n#set($lb1Width=60)\r\n#set($lb2Width=150)\r\n#set($lb3Width=225)\r\n#set($ctl2X=$lb1Width+5)\r\n\r\n\r\n<msc>\r\n<Head>\r\n        <Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body  Text=\"普通邮件详细\" BackColor=\"#FFFFFF\" Name=\"MailDetail\"> \r\n    <TabControl ToolbarSize=\"240,23\" BackColor=\"255,255,255\" BackgroundImage=\"tabitem_background.bmp\"  DockType=\"Bottom\" Dock=\"Fill\"  ItemsAlignment=\"BottomLeft\">\r\n      <TabPage ImageDefault=\"tabitem_default.bmp\" BackColor=\"#ffffff\" Text=\"正文\" ImagePressed=\"tabitem_select.bmp\" AutoScroll=\"True\">\r\n         <Label Name=\"label1\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"发件人: \"/>\r\n         #set($x = $ctl2X)\r\n                <Label Name=\"Fjr\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Fjr\').value}\"/>\r\n\r\n          #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label2\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"收件人:\"/>\r\n         #set($x = $ctl2X)\r\n	<Label Name=\"Sjr\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Sjr\').value}\"/>\r\n\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n	  <Label Name=\"label3\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"主题: \"/>\r\n         #set($x = $ctl2X)\r\n         #set($temp_c=${fields.get(\'ZhuTi\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         #if($controlHeight<$lineHeight)\r\n             #set($controlHeight = $lineHeight)\r\n         #end\r\n	 <Label Name=\"ZhuTi\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'ZhuTi\').value}\"/>\r\n         \r\n\r\n         #set($y = $y+$controlHeight)\r\n         <Split Name=\"splitter1\" Location=\"0,$y\" Width=\"$splitterWidth\" Height=\"$splitterLineHeight\" TopSplitColor=\"#A5DBF7\" BottomSplitColor=\"#A5DBF7\"/>\r\n        \r\n         #set($y = $y+$splitterHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label4\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"邮件正文:\"/>\r\n         #set($x = $ctl2X)\r\n         #set($temp_c=${fields.get(\'Body\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         #if($controlHeight<$lineHeight)\r\n             #set($controlHeight = $lineHeight)\r\n         #end\r\n	 <Label Name=\"NeiRong\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'Body\').value}\"/>\r\n    </TabPage>    \r\n    <TabPage ImageDefault=\"tabitem_default.bmp\" BackColor=\"#ffffff\" ImagePressed=\"tabitem_select.bmp\" Text=\"附件\" AutoScroll=\"True\">\r\n     #set($x = 2)\r\n     #set($y = 5)\r\n     <Attach  Location=\"$x,$y\"  Name=\"attachs1\" Width=\"220\" Source=\"\r\n        #foreach($attach in $record.attachs.get(\'attachs\'))\r\n        ${attach.get(\"Value\")}|${attach.get(\"URL\")},\r\n        #end\r\n        \"/>\r\n\r\n    </TabPage>\r\n  </TabControl > \r\n<Vars>\r\n         <Var Name=\"Global:MailReceiver\" Value=\"\"/>\r\n	<Var Name=\"Global:MailTitlePrefix\" Value=\"\"/>\r\n     </Vars> \r\n<Actions>\r\n	<Action Name=\"Huifu\" Code=\"cmd:SetValue(Global:MailReceiver,Local:Fjr.Text);cmd:SetValue(Global:MailTitlePrefix,回复:);url:c=MailIndex#MailId=#EnterPoint=MailDetail\"/>\r\n	<Action Name=\"ZhuanFa\" Code=\"cmd:SetValue(Global:MailReceiver,);cmd:SetValue(Global:MailTitlePrefix,转发:);url:c=MailIndex#MailId=#EnterPoint=MailDetail\"/>\r\n</Actions>\r\n  		<MenuItem Text=\"回复\" Click=\"act:Huifu\" />\r\n		<MenuItem Text=\"转发\" Click=\"act:ZhuanFa\"/>\r\n  </Body>\r\n</msc>\r\n#end\r\n </Response>', '19', '1961', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n \r\n\r\n#set($ctl1X = 2)\r\n#set($num = 13)\r\n#set($num2 = 19)\r\n#set($lineHeight = 25)\r\n#set($labelHeight=13)\r\n#set($controlHeight=23)\r\n#set($splitterWidth = 227)\r\n#set($splitterLineHeight = 2)\r\n#set($splitterHeight = 7)\r\n#set($x = 2)\r\n#set($y = 5)\r\n#set($lb1Width=60)\r\n#set($lb2Width=150)\r\n#set($lb3Width=225)\r\n#set($ctl2X=$lb1Width+5)\r\n\r\n\r\n<msc>\r\n<Head>\r\n        <Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body  Text=\"普通邮件详细\" BackColor=\"#FFFFFF\" Name=\"MailDetail\"> \r\n    <TabControl ToolbarSize=\"240,23\" BackColor=\"255,255,255\" BackgroundImage=\"tabitem_background.bmp\"  DockType=\"Bottom\" Dock=\"Fill\"  ItemsAlignment=\"BottomLeft\">\r\n      <TabPage ImageDefault=\"tabitem_default.bmp\" BackColor=\"#ffffff\" Text=\"正文\" ImagePressed=\"tabitem_select.bmp\" AutoScroll=\"True\">\r\n         <Label Name=\"label1\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"发件人: \"/>\r\n         #set($x = $ctl2X)\r\n                <Label Name=\"Fjr\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Fjr\').value}\"/>\r\n\r\n          #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label2\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"收件人:\"/>\r\n         #set($x = $ctl2X)\r\n	<Label Name=\"Sjr\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Sjr\').value}\"/>\r\n\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n	  <Label Name=\"label3\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"主题: \"/>\r\n         #set($x = $ctl2X)\r\n         #set($temp_c=${fields.get(\'ZhuTi\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         #if($controlHeight<$lineHeight)\r\n             #set($controlHeight = $lineHeight)\r\n         #end\r\n	 <Label Name=\"ZhuTi\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'ZhuTi\').value}\"/>\r\n         \r\n\r\n         #set($y = $y+$controlHeight)\r\n         <Split Name=\"splitter1\" Location=\"0,$y\" Width=\"$splitterWidth\" Height=\"$splitterLineHeight\" TopSplitColor=\"#A5DBF7\" BottomSplitColor=\"#A5DBF7\"/>\r\n        \r\n         #set($y = $y+$splitterHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label4\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"邮件正文:\"/>\r\n         #set($x = $ctl2X)\r\n         #set($temp_c=${fields.get(\'Body\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         #if($controlHeight<$lineHeight)\r\n             #set($controlHeight = $lineHeight)\r\n         #end\r\n	 <Label Name=\"NeiRong\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'Body\').value}\"/>\r\n    </TabPage>    \r\n    <TabPage ImageDefault=\"tabitem_default.bmp\" BackColor=\"#ffffff\" ImagePressed=\"tabitem_select.bmp\" Text=\"附件\" AutoScroll=\"True\">\r\n     #set($x = 2)\r\n     #set($y = 5)\r\n     <Attach  Location=\"$x,$y\"  Name=\"attachs1\" Width=\"220\" Source=\"\r\n        #foreach($attach in $record.attachs.get(\'attachs\'))\r\n        ${attach.get(\"Value\")}|${attach.get(\"URL\")},\r\n        #end\r\n        \"/>\r\n\r\n    </TabPage>\r\n  </TabControl > \r\n<Vars>\r\n         <Var Name=\"Global:MailReceiver\" Value=\"\"/>\r\n	<Var Name=\"Global:MailTitlePrefix\" Value=\"\"/>\r\n     </Vars> \r\n<Actions>\r\n	<Action Name=\"Huifu\" Code=\"cmd:SetValue(Global:MailReceiver,Local:Fjr.Text);cmd:SetValue(Global:MailTitlePrefix,回复:);url:c=MailIndex#MailId=#EnterPoint=MailDetail\"/>\r\n	<Action Name=\"ZhuanFa\" Code=\"cmd:SetValue(Global:MailReceiver,);cmd:SetValue(Global:MailTitlePrefix,转发:);url:c=MailIndex#MailId=#EnterPoint=MailDetail\"/>\r\n</Actions>\r\n  		<MenuItem Text=\"回复\" Click=\"act:Huifu\" />\r\n		<MenuItem Text=\"转发\" Click=\"act:ZhuanFa\"/>\r\n  </Body>\r\n</msc>\r\n#end\r\n </Response>', '19', '1962', 'Brew');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##通讯录个人列表\r\n#set($Back=${dataprops.get(\'Back\')})\r\n#set($Next=${dataprops.get(\'Next\')})\r\n#set($PageCur=${dataprops.get(\'PageCur\')})\r\n#set($PageCount=${dataprops.get(\'PageCount\')})\r\n#set($PageInfo=\"第\"+$PageCur+\"/\"+$PageCount+\"页\")\r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"通讯录个人列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource1.gif\"/>\r\n		<Image Source=\"group.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventR2L=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"$PageInfo\" Size=\"100, 20\" Location=\"105, 4\"/>\r\n		<ListView Name=\"PersonList\" Location=\"0,24\" Size=\"240,244\" CheckBoxes=\"true\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\">\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n\r\n	#set($fields = $record.fields)\r\n\r\n	#set($Sort=${fields.get(\'Sort\').value})\r\n	#if($Sort==\"群组\")\r\n	#set($imgIndex=0)\r\n	#else\r\n	#set($imgIndex=1)\r\n	#end\r\n			<ListViewItem Text=\"${fields.get(\'Name\').value}\" ImageIndex=\"$imgIndex\" Tag=\"${fields.get(\'KeyString\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	<Actions>\r\n		<Action Name=\"OK\" Code=\"cmd:AppendValue(Global:MailIndex.Sjr.Text,Local:PersonList.SelectedValues);cmd:Back()\"/>\r\n	</Actions>\r\n	<MenuItem Text=\"确定\" Click=\"act:OK\"/>\r\n  <MenuItem Text=\"操作\">\r\n  #if($PageCur==$Back)\r\n  		<MenuItem Text=\"上一页\"  Enabled=\"false\"/>\r\n  #else\r\n  		<MenuItem Text=\"上一页\"  Click=\"url:c=AddressList#Cur=${dataprops.get(\'Back\')}#target=_self\"/>\r\n  #end\r\n  #if($PageCur==$Next)\r\n  		<MenuItem Text=\"下一页\"  Enabled=\"false\"/>\r\n  #else\r\n  		<MenuItem Text=\"下一页\"  Click=\"url:c=AddressList#Cur=${dataprops.get(\'Next\')}#target=_self\"/>\r\n  #end     \r\n  </MenuItem>\r\n</Body>\r\n</msc>\r\n</Response>', '32', '1969', 'Brew');
INSERT INTO `function_prof` VALUES ('GRTXLLB1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n	<xsl:variable name=\"page\" select=\"//INPUT[@name=\'page\']/@value\"/>\r\n	<xsl:variable name=\"li\"><![CDATA[\']]></xsl:variable>\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n			<info key=\'page\'><xsl:value-of select=\"$page\"/></info>\r\n			<info key=\'count\'><xsl:value-of select=\"//INPUT[@name=\'Count\']/@value\"/></info>\r\n			<!-- 通过xpath取得翻页标示-->\r\n			<info key=\'next\'><xsl:value-of select=\"substring-before(substring-after(//INPUT[@value=\'下页\']/@onclick,$li),$li)\"/></info>\r\n			<info key=\'back\'><xsl:value-of select=\"substring-before(substring-after(//INPUT[@value=\'上页\']/@onclick,$li),$li)\"/></info>\r\n			<map key=\'Data\'>\r\n				<!-- 调用匹配模版-->\r\n				<xsl:apply-templates select=\"//TABLE[2]/TR/TD/TABLE\"/>\r\n			</map>\r\n		</map>\r\n	</xsl:template>\r\n	<!-- 组装模版，取得需要的数据-->\r\n	<xsl:template match=\"//TABLE[2]/TR/TD/TABLE\">\r\n		<xsl:for-each select=\"TR[position() > 1]\">\r\n			<list key=\'Data\'>\r\n				<info key=\'name\'>\r\n					<xsl:value-of select=\"TD[2]/text()\"/>\r\n				</info>\r\n				<info key=\'sort\'>\r\n					<xsl:value-of select=\"TD[3]/text()\"/>\r\n				</info>\r\n				<info key=\'keyString\'>\r\n					<xsl:value-of select=\"TD[1]/INPUT/@value\"/>\r\n				</info>\r\n			</list>\r\n		</xsl:for-each>\r\n	</xsl:template>\r\n</xsl:stylesheet>', '32', '1970', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##个人通讯录列表\r\n#set($xsl=$funcprof.get(\'GRTXLLB1\'))\r\n##从全局变量取得个人通信录得提交地址\r\n#set($Url=$EVENT.bsEvent.getUserData(\'Login\',\'MailInfo\',$CONTEXT).get(\'STRMAILADDRESS\'))\r\n##取得通信录翻页信息\r\n#set($Cur=$Req_Fields.get(\'Cur\'))\r\n#set( $fun_post_para = \"\")\r\n##\r\n##解析翻页信息，构筑提交参数\r\n#if($Cur && $Cur.length() > 0 )\r\n#set($array = $Cur.split(\'!_!\'))\r\n#set($__Click=$EVENT.envEvent.getArrayIndex($array,0))\r\n#set($page=$EVENT.envEvent.getArrayIndex($array,1))\r\n#set( $fun_post_para = \"__Click=__Click,page=page\" )\r\n#end\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')/$Url\" )\r\n#set( $fun_method = \"POST\" )\r\n##触发事件，提交数据\r\n#set( $fundata = $EVENT.bsEvent.getData($fun_method,$fun_post_para,$fun_url,$xsl,$CONTEXT) )\r\n##构造翻页索引信息\r\n#set( $pagecur = $fundata.get(\'page\') )\r\n#set( $count = $fundata.get(\'count\') )\r\n#set( $nextpage = $fundata.get(\'next\') )\r\n#set( $backpage = $fundata.get(\'back\') )\r\n#if( $nextpage && $nextpage.length() > 0)\r\n#set( $nextpage = \"$nextpage!_!$pagecur\" )\r\n#end\r\n#if( $backpage && $backpage.length() > 0)\r\n#set( $backpage = \"$backpage!_!$pagecur\" )\r\n#end\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n					<Item Name=\"Next\">$nextpage</Item>\r\n					<Item Name=\"Back\">$backpage</Item>\r\n					<Item Name=\"PageCur\">$pagecur</Item>\r\n					<Item Name=\"PageCount\">$count</Item>\r\n				</DataPropList >\r\n#foreach($Record in $fundata.get(\'Data\'))\r\n				<Record MSGID=\"\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n						<Field Name=\"Name\" type=\"string\" base64=\"0\">$Record.get(\'Data\').get(\'name\')</Field>\r\n						<Field Name=\"Sort\" type=\"string\" base64=\"0\">$Record.get(\'Data\').get(\'sort\')</Field>\r\n						<Field Name=\"KeyString\" type=\"string\" base64=\"0\">$Record.get(\'Data\').get(\'keyString\')</Field>\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n#end\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '32', '1971', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '32', '1972', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##通讯录个人列表\r\n#set($Back=${dataprops.get(\'Back\')})\r\n#set($Next=${dataprops.get(\'Next\')})\r\n#set($PageCur=${dataprops.get(\'PageCur\')})\r\n#set($PageCount=${dataprops.get(\'PageCount\')})\r\n#set($PageInfo=\"第\"+$PageCur+\"/\"+$PageCount+\"页\")\r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"通讯录个人列表\" Size=\"$width,$height\">\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource1.gif\"/>\r\n		<Image Source=\"group.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventR2L=\"cmd:Back()\" Dock=\"Fill\">\r\n#set($width=$wmul*100)\r\n#set($x=$wmul*105)\r\n#set($y=$hmul*4)\r\n		<Label Text=\"$PageInfo\" Size=\"$width, 20\" Location=\"$x,$y\"/>\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*244)\r\n		<ListView Name=\"PersonList\" Location=\"0,24\" Size=\"$width,$height\" CheckBoxes=\"true\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\">\r\n#set($width=$wmul*225)\r\n			<ColumnHeader Width=\"$width\" />\r\n	#foreach($record in $records)\r\n\r\n	#set($fields = $record.fields)\r\n\r\n	#set($Sort=${fields.get(\'Sort\').value})\r\n	#if($Sort==\"群组\")\r\n	#set($imgIndex=0)\r\n	#else\r\n	#set($imgIndex=1)\r\n	#end\r\n			<ListViewItem Text=\"${fields.get(\'Name\').value}\" ImageIndex=\"$imgIndex\" Tag=\"${fields.get(\'KeyString\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	<Actions>\r\n		<Action Name=\"OK\" Code=\"cmd:AppendValue(Global:MailIndex.Sjr.Text,Local:PersonList.SelectedValues);cmd:Back()\"/>\r\n	</Actions>\r\n	<MenuItem Text=\"确定\" Click=\"act:OK\"/>\r\n  <MenuItem Text=\"操作\">\r\n  #if($PageCur==$Back)\r\n  		<MenuItem Text=\"上一页\"  Enabled=\"false\"/>\r\n  #else\r\n  		<MenuItem Text=\"上一页\"  Click=\"url:c=AddressList#Cur=${dataprops.get(\'Back\')}#target=_self\"/>\r\n  #end\r\n  #if($PageCur==$Next)\r\n  		<MenuItem Text=\"下一页\"  Enabled=\"false\"/>\r\n  #else\r\n  		<MenuItem Text=\"下一页\"  Click=\"url:c=AddressList#Cur=${dataprops.get(\'Next\')}#target=_self\"/>\r\n  #end     \r\n  </MenuItem>\r\n</Body>\r\n</msc>\r\n</Response>', '32', '1973', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '20', '2244', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##发邮件\r\n##构造发送邮件的参数信息\r\n#set($xsl=$funcprof.get(\'FYJXSL1\'))\r\n#set($Url=\"/MailInterface.nsf/mail?OpenForm\")\r\n#set($Click=$Req_Fields.get(\'MailClick\'))\r\n#set($sjr=\"$Req_Fields.get(\'SjrId\')\")\r\n#set($zhuti=$Req_Fields.get(\'ZhuTi\'))\r\n#if($zhuti.length == 0)\r\n#set($zhuti = \"无主题\")\r\n#end\r\n##\r\n##从个人邮件全局变量取出发件人信息\r\n#set($fjr=$EVENT.bsEvent.getUserData(\'mainPage\',\'MailInfo\',$CONTEXT).get(\'STRFROM\'))\r\n#set($doma=$EVENT.bsEvent.getUserData(\'mainPage\',\'MailInfo\',$CONTEXT).get(\'STRMAILSERVER\'))\r\n#set($body=$Req_Fields.get(\'Body\'))\r\n#set($mailid=$Req_Fields.get(\'MailId\'))\r\n##处理域名\r\n#set($sjr_ar=$sjr.split(\',\'))\r\n#set($sjt_tp=\"\")\r\n#foreach ($sad in $$sjr_ar)\r\n#if($sad.length() > 0)	\r\n#if( $sad.indexOf(\'@\') < 0)\r\n#set($sjt_tp=\"$sjt_tp$sad@$doma,\")\r\n#else\r\n#set($sjt_tp=\"$sjt_tp$sad,\")\r\n#end\r\n#end\r\n#end\r\n##\r\n##取得邮件消息对象\r\n#set($MAIL=$EVENT.mailEvent.getMailMessage())\r\n$MAIL.setSubject($zhuti)\r\n$MAIL.setMessage_to($sjt_tp)\r\n$MAIL.setMessage_cc(\"\")\r\n$MAIL.setMessage_bcc(\"\")\r\n$MAIL.setMessage_body($body)\r\n##\r\n##处理附件\r\n#set($attch=$Req_Fields.get(\'FileAddress\').split(\',\'))\r\n#set($tempf=\"\")\r\n#set($tempp=$EVENT.envEvent.getContextPath())\r\n#foreach($key in $attch)\r\n#if($key.length() > 0)\r\n#set($tempf = $tempf + ${tempp}+${key}+\",\")\r\n#end\r\n#end\r\n$EVENT.envEvent.logger($tempf)\r\n#set($attlist=$EVENT.envEvent.arrayToList($tempf.split(\',\')))\r\n$MAIL.setAttachs($attlist)\r\n##发送邮件\r\n$EVENT.mailEvent.sendUserMail($CONTEXT)\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">$Code</Info>\r\n		<Info Name=\"Reason\">$Reason</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n	<Record MSGID=\"\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n			<Field Name=\"Code\" type=\"string\" base64=\"0\">$Code</Field>\r\n			<Field Name=\"Reason\" type=\"string\" base64=\"0\">$Reason</Field>\r\n		</FieldList>\r\n		<AttachList>\r\n		</AttachList>\r\n	</Record>\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '20', '2245', null);
INSERT INTO `function_prof` VALUES ('FYJXSL1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n<!-- 取得发送成功的标示节点信息-->\r\n<xsl:variable name=\"flag\" select=\"/HTML/BODY/SUCCESSED/text()\"/>\r\n<xsl:variable name=\"yes\">YES</xsl:variable>\r\n<xsl:variable name=\"no\">NO</xsl:variable>\r\n	<xsl:if test=\"contains($flag,\'成功\')\">\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n			<info key=\'Reason\'>邮件发送成功</info>\r\n			<xsl:apply-templates select=\"print\"/>\r\n		</map>\r\n	</xsl:if>	\r\n	<xsl:if test=\"not(contains($flag,\'成功\'))\">\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>0</info>\r\n			<info key=\'Reason\'>邮件发送失败</info>\r\n		</map>\r\n	</xsl:if>		\r\n</xsl:template>\r\n</xsl:stylesheet>', '20', '2246', null);
INSERT INTO `function_prof` VALUES ('REQUEST_TEMPLATE', '<Request>\r\n	<RequestInfos>\r\n		<Info Name=\"RequestCode\">${RequestCode}</Info>\r\n		<Info Name=\"RequestUnitCode\"></Info>\r\n		<Info Name=\"RequestUserLoginName\">${Browser_Username}</Info>\r\n		<Info Name=\"RequestUserPassword\">${Browser_Password}</Info>\r\n		<Info Name=\"RequestAuthString\">0000</Info>\r\n		<Info Name=\"ClientSysType\">${ClientSysType}</Info>\r\n		<Info Name=\"Session\">$Session</Info>\r\n	</RequestInfos>\r\n	<PassContent>\r\n<![CDATA[\r\n<Data>\r\n	<DataHead>\r\n	</DataHead>\r\n	<FieldList>\r\n		<Field Name=\"MailId\">$MailId</Field>	\r\n		<Field Name=\"MailClick\">$MailClick</Field>	\r\n		<Field Name=\"SjrId\">$SjrId</Field>	\r\n		<Field Name=\"ZhuTi\">$ZhuTi</Field>	\r\n		<Field Name=\"Body\">$Body</Field>\r\n	</FieldList>\r\n</Data>]]>\r\n	</PassContent>\r\n</Request>', '20', '2247', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<html>\r\n  <head>   \r\n    <title>写邮件</title>    \r\n  </head>  \r\n  <body>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n#if(${fields.get(\'Code\').value} == \"1\")\r\n邮件发送成功！\r\n#else\r\n邮件发送失败！\r\n#end\r\n#end\r\n</body>\r\n</html>', '20', '2248', 'ie_wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n#set($Code=${fields.get(\'Code\').value})\r\n<msc>\r\n<Head>\r\n        <Info Name=\"Code\">$Code</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"发邮件\" BackColor=\"#FFFFFF\">\r\n#if($Code==\'1\')\r\n      <Label Name=\"label1\" Location=\"10,10\" TextAlign=\"TopLeft\" Width=\"210\" Text=\"邮件发送成功。\"/>\r\n      <Actions>\r\n		##重置收件人变量\r\n      		<Action Name=\"OK\" Code=\"cmd:SetValue(Global:MailReceiver,);cmd:Back()\"/>\r\n      </Actions>\r\n      <MenuItem Text=\"确定\" Click=\"act:OK\"/>\r\n#else\r\n      <Label Name=\"label1\" Location=\"10,10\" TextAlign=\"TopLeft\" Width=\"210\" Text=\"邮件发送失败。\"/>\r\n      <MenuItem Text=\"确定\" Click=\"cmd:Back()\"/>\r\n#end\r\n</Body>\r\n</msc>\r\n#end\r\n</Response>', '20', '2249', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n#set($Code=${fields.get(\'Code\').value})\r\n<msc>\r\n<Head>\r\n        <Info Name=\"Code\">$Code</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"发邮件\" BackColor=\"#FFFFFF\">\r\n#if($Code==\'1\')\r\n      <Label Name=\"label1\" Location=\"10,10\" TextAlign=\"TopLeft\" Width=\"210\" Text=\"邮件发送成功。\"/>\r\n      <Actions>\r\n		##重置收件人变量\r\n      		<Action Name=\"OK\" Code=\"cmd:SetValue(Global:MailReceiver,);cmd:Back()\"/>\r\n      </Actions>\r\n      <MenuItem Text=\"确定\" Click=\"act:OK\"/>\r\n#else\r\n      <Label Name=\"label1\" Location=\"10,10\" TextAlign=\"TopLeft\" Width=\"210\" Text=\"邮件发送失败。\"/>\r\n      <MenuItem Text=\"确定\" Click=\"cmd:Back()\"/>\r\n#end\r\n</Body>\r\n</msc>\r\n#end\r\n</Response>', '20', '2250', 'Brew');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##部门通讯录\r\n#set($From=${dataprops.get(\'From\')})\r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"通讯录部门列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserSearch#Name=Local:searchStr.Text#Number=10\"/>\r\n#if($From==\"txl\")\r\n		<ListView Name=\"listView1\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" ItemActivate=\"url:c=AddListUser#Id=Local:listView1.SelectedValue#Number=10\">\r\n#else\r\n	  	<ListView Name=\"listView1\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" ItemActivate=\"url:c=AddListUserMail#Id=Local:listView1.SelectedValue#Number=10\">\r\n#end\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'id\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n</Body>\r\n</msc>\r\n</Response>', '24', '2409', 'Brew');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##部门通讯录\r\n##取得入口类型\r\n#set($From=$EVENT.bsEvent.getUserDataObject(\'AddressList\',$CONTEXT).get(\'From\'))\r\n##\r\n##取得查询部门id\r\n#set($pid=$Req_Fields.get(\'Id\'))\r\n#set($para=\"INT=$pid\")\r\n##构造查询sql语句及数据源\r\n#set($sql1=\"select id,dept_name as name from department where company_id = ? order by seq_column\")\r\n#set($dbsource = \"addresslist\")\r\n##\r\n##触发执行sql语句\r\n#set( $fundata = $EVENT.dbEvent.getResult($dbsource,$sql1,$para))\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n					<Item Name=\"Next\"></Item>\r\n					<Item Name=\"Back\"></Item>\r\n                                                                                <Item Name=\"From\">$From</Item>\r\n				</DataPropList >\r\n#foreach($Record in $fundata)\r\n#set($msgid=$Record.get(\'id\'))\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n						<Field Name=\"id\" type=\"string\" base64=\"0\">$msgid</Field>\r\n						<Field Name=\"name\" type=\"string\" base64=\"0\">$Record.get(\'name\')</Field>\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n#end\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '24', '2410', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'DB_INVOKE', '24', '2411', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##部门通讯录\r\n#set($From=${dataprops.get(\'From\')})\r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"通讯录部门列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserSearch#Name=Local:searchStr.Text#Number=10\"/>\r\n#if($From==\"txl\")\r\n		<ListView Name=\"listView1\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" ItemActivate=\"url:c=AddListUser#Id=Local:listView1.SelectedValue#Number=10\">\r\n#else\r\n	  	<ListView Name=\"listView1\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" ItemActivate=\"url:c=AddListUserMail#Id=Local:listView1.SelectedValue#Number=10\">\r\n#end\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'id\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n</Body>\r\n</msc>\r\n</Response>', '24', '2412', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##个人通讯录列表\r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"通讯录个人列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource1.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserSearch#Name=Local:searchStr.Text#Number=10\"/>\r\n		<ListView Name=\"PersonList\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" ItemActivate=\"url:c=AddListUserInfo#Id=Local:PersonList.SelectedValue\">\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'id\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n</Body>\r\n</msc>\r\n</Response>', '25', '2413', 'Brew');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##个人通讯录\r\n#set($dbsource = \"addresslist\")\r\n#set($pid=$Req_Fields.get(\'Id\'))\r\n#set($pnum=$Req_Fields.get(\'Number\'))\r\n#set($pcur=$Req_Fields.get(\'Cur\'))\r\n##\r\n#set($min=\'\')\r\n#set($max=\'\')\r\n##如果没有查询范围，查询本次查询的范围ID\r\n#if(!($pcur) || $pcur.length() == 0)\r\n#set($sql1 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where dept_id = ? and id > ? order by id limit ?) as user\")\r\n#set($para1=\"INT=$pid;INT=0;INT=$pnum\")\r\n#set($resu1=$EVENT.dbEvent.getResult($dbsource,$sql1,$para1))\r\n#foreach($key in $resu1)\r\n#set($min=$key.get(\'min\'))\r\n#set($max=$key.get(\'max\'))\r\n#end\r\n#else\r\n#set($str=$pcur.split(\',\'))\r\n#set($min=$EVENT.envEvent.getArrayIndex($str,0))\r\n#set($max=$EVENT.envEvent.getArrayIndex($str,1))\r\n#end\r\n##\r\n##通过范围ID查询个人信息数据\r\n#set($para=\"INT=$pid;INT=$min;INT=$max\")\r\n#set($sql=\"select id,name from user_pubtel where dept_id = ? and id >= ? and id <= ? order by seq_column\")\r\n##\r\n#set( $fundata = $EVENT.dbEvent.getResult($dbsource,$sql,$para))\r\n##取得下一页ID范围\r\n#set($sql2 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where dept_id = ? and id > ? order by id desc limit ?) as user\")\r\n#set($para2=\"INT=$pid;INT=$max;INT=$pnum\")\r\n#set($resu2=$EVENT.dbEvent.getResult($dbsource,$sql2,$para2))\r\n#foreach($key in $resu2)\r\n#set($nmin=$key.get(\'min\'))\r\n#set($nmax=$key.get(\'max\'))\r\n#end\r\n#if(!$nmin || $nmin.length() ==0)\r\n#set($next=\"\")\r\n#else\r\n#set($next=\"$nmin,$nmax\")\r\n#end\r\n##取得上一页ID范围\r\n#set($sql3 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where dept_id = ? and id < ? order by id desc limit ?) as user\")\r\n#set($para3=\"INT=$pid;INT=$min;INT=$pnum\")\r\n#set($resu3=$EVENT.dbEvent.getResult($dbsource,$sql3,$para3))\r\n#foreach($key in $resu3)\r\n#set($bmin=$key.get(\'min\'))\r\n#set($bmax=$key.get(\'max\'))\r\n#end\r\n#if(!$bmin || $bmin.length() ==0)\r\n#set($back=\"\")\r\n#else\r\n#set($back=\"$bmin,$bmax\")\r\n#end\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n					<Item Name=\"Next\">$next</Item>\r\n					<Item Name=\"Back\">$back</Item>				                </DataPropList >\r\n#foreach($Record in $fundata)\r\n#set($msgid=$Record.get(\'id\'))\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n						<Field Name=\"id\" type=\"string\" base64=\"0\">$msgid</Field>\r\n						<Field Name=\"name\" type=\"string\" base64=\"0\">$Record.get(\'name\')</Field>\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n#end\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '25', '2414', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'DB_INVOKE', '25', '2415', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##个人通讯录列表\r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"通讯录个人列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource1.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserSearch#Name=Local:searchStr.Text#Number=10\"/>\r\n		<ListView Name=\"PersonList\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" ItemActivate=\"url:c=AddListUserInfo#Id=Local:PersonList.SelectedValue\">\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'id\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n</Body>\r\n</msc>\r\n</Response>', '25', '2416', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n	<msc>\r\n	 <Head>\r\n		<Info Name=\"Code\">$ResponseInfos.get(\'Code\')</Info>\r\n		<Info Name=\"Reason\">$ResponseInfos.get(\'Reason\')</Info>\r\n	</Head>\r\n#set($lineHeight = 25)\r\n#set($lb1Width=50)\r\n#set($lb2Width=180)\r\n#set($lb1x = 0)\r\n#set($lb2x = $lb1x+$lb1Width)\r\n#set($y = 5)\r\n	<Body Text=\"个人信息\" >\r\n		<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n			<Label Text=\"姓名: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Name\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"公司: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Company\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"部门: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Department\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"电话: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Phone\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"手机: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Mobile\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"C网手机: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Cmobile\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"邮箱: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Email\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n		</MouseGesturePanel>\r\n		<MenuItem Text=\"操作\">\r\n			<MenuItem Text=\"拨打电话\" Click=\"cmd:Telephone(${fields.get(\'Phone\').value})\" />\r\n			<MenuItem Text=\"拨打手机\" Click=\"cmd:Telephone(${fields.get(\'Mobile\').value})\"/>\r\n			<MenuItem Text=\"发送短信\" Click=\"cmd:Sms(${fields.get(\'Mobile\').value})\" />\r\n			<MenuItem Text=\"发送邮件\" Click=\"cmd:ShowMessageBox(${fields.get(\'Email\').value});\"/>\r\n		</MenuItem>\r\n	</Body>\r\n	</msc>\r\n	#end\r\n</Response>', '26', '2417', 'Brew');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##个人信息通讯录\r\n#set($pid=$Req_Fields.get(\'Id\'))\r\n##查询的个人信息id\r\n#set($para=\"INT=$pid\")\r\n##查询sql\r\n#set($sql1=\"select user_pubtel.id as uid,name,phone,cmobile,mobile,mail,dept_name,company_name from user_pubtel,company,department where user_pubtel.id = ? and user_pubtel.dept_id = department.id and user_pubtel.company_id = company.id\")\r\n##数据源\r\n#set($dbsource = \"addresslist\")\r\n##执行sql\r\n#set( $fundata = $EVENT.dbEvent.getResult($dbsource,$sql1,$para))\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n					<Item Name=\"Next\"></Item>\r\n					<Item Name=\"Back\"></Item>\r\n				</DataPropList >\r\n#foreach($Record in $fundata)\r\n#set($msgid=$Record.get(\'uid\'))\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n						<Field Name=\"Name\" type=\"string\" base64=\"0\">$Record.get(\'name\')</Field>\r\n						<Field Name=\"Company\" type=\"string\" base64=\"0\">$Record.get(\'company_name\')</Field>\r\n						<Field Name=\"Department\" type=\"string\" base64=\"0\">$Record.get(\'dept_name\')</Field>\r\n						<Field Name=\"Phone\" type=\"string\" base64=\"0\">$Record.get(\'phone\')</Field>\r\n						<Field Name=\"Mobile\" type=\"string\" base64=\"0\">$Record.get(\'mobile\')</Field>\r\n						<Field Name=\"Cmobile\" type=\"string\" base64=\"0\">$Record.get(\'cmobile\')</Field>\r\n						<Field Name=\"Email\" type=\"string\" base64=\"0\">$Record.get(\'mail\')</Field>\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n#end\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '26', '2418', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'DB_INVOKE', '26', '2419', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n	<msc>\r\n	 <Head>\r\n		<Info Name=\"Code\">$ResponseInfos.get(\'Code\')</Info>\r\n		<Info Name=\"Reason\">$ResponseInfos.get(\'Reason\')</Info>\r\n	</Head>\r\n#set($lineHeight = 25)\r\n#set($lb1Width=50)\r\n#set($lb2Width=180)\r\n#set($lb1x = 0)\r\n#set($lb2x = $lb1x+$lb1Width)\r\n#set($y = 5)\r\n	<Body Text=\"个人信息\" >\r\n		<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n			<Label Text=\"姓名: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Name\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"公司: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Company\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"部门: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Department\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"电话: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Phone\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"手机: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Mobile\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"C网手机: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Cmobile\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n			#set($y = $y+$lineHeight)\r\n			<Label Text=\"邮箱: \" Size=\"$lb1Width, $lineHeight\" Location=\"$lb1x,$y\"/>\r\n			<Label Text=\"${fields.get(\'Email\').value}\" Size=\"$lb2Width, $lineHeight\" Location=\"$lb2x,$y\"/>\r\n		</MouseGesturePanel>\r\n		<MenuItem Text=\"操作\">\r\n			<MenuItem Text=\"拨打电话\" Click=\"cmd:Telephone(${fields.get(\'Phone\').value})\" />\r\n			<MenuItem Text=\"拨打手机\" Click=\"cmd:Telephone(${fields.get(\'Mobile\').value})\"/>\r\n			<MenuItem Text=\"发送短信\" Click=\"cmd:Sms(${fields.get(\'Mobile\').value})\" />\r\n			<MenuItem Text=\"发送邮件\" Click=\"cmd:ShowMessageBox(${fields.get(\'Email\').value});\"/>\r\n		</MenuItem>\r\n	</Body>\r\n	</msc>\r\n	#end\r\n</Response>', '26', '2420', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">$ResponseInfos.get(\'Code\')</Info>\r\n	<Info Name=\"Reason\">$ResponseInfos.get(\'Reason\')</Info>\r\n</Head>\r\n<Body Text=\"通讯录个人列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource1.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserSearch#Name=Local:searchStr.Text#Number=10#target=_self\"/>\r\n		<ListView Name=\"listView1\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" ItemActivate=\"url:c=AddListUserInfo#Id=Local:listView1.SelectedValue\">\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'id\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n\r\n</Body>\r\n</msc>\r\n</Response>', '27', '2421', 'Brew');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##个入信息搜索通信录\r\n#set($dbsource = \"addresslist\")\r\n#set($pname=\"%$Req_Fields.get(\'Name\')%\")\r\n#set($pnum=$Req_Fields.get(\'Number\'))\r\n#set($pcur=$Req_Fields.get(\'Cur\'))\r\n##\r\n#set($min=\"\")\r\n#set($max=\"\")\r\n##\r\n##如果没有查询范围，查询本次查询的范围ID\r\n#if(!($pcur) || $pcur.length() == 0)\r\n#set($sql1 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where name like ? and id > ? order by id limit ?) as user\")\r\n#set($para1=\"VARCHAR=$pname;INT=0;INT=$pnum\")\r\n#set($resu1=$EVENT.dbEvent.getResult($dbsource,$sql1,$para1))\r\n#foreach($key in $resu1)\r\n#set($min=$key.get(\'min\'))\r\n#set($max=$key.get(\'max\'))\r\n#end\r\n#else\r\n#set($str=$pcur.split(\',\'))\r\n#set($min=$EVENT.envEvent.getArrayIndex($str,0))\r\n#set($max=$EVENT.envEvent.getArrayIndex($str,1))\r\n#end\r\n#if($min==\"\")\r\n#set($min=\"0\")\r\n#end\r\n#if($max==\"\")\r\n#set($max=\"0\")\r\n#end\r\n##\r\n##通过范围ID查询个人信息数据\r\n#set($para=\"VARCHAR=$pname;INT=$min;INT=$max\")\r\n#set($sql=\"select id,name from user_pubtel where name like ? and id >= ? and id <= ? order by seq_column\")\r\n##\r\n#set( $fundata = $EVENT.dbEvent.getResult($dbsource,$sql,$para))\r\n##取得下一页ID范围\r\n#set($sql2 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where name like ? and id > ? order by id limit ?) as user\")\r\n#set($para2=\"VARCHAR=$pname;INT=$max;INT=$pnum\")\r\n#set($resu2=$EVENT.dbEvent.getResult($dbsource,$sql2,$para2))\r\n#foreach($key in $resu2)\r\n#set($nmin=$key.get(\'min\'))\r\n#set($nmax=$key.get(\'max\'))\r\n#end\r\n#if(!$nmin || $nmin.length() ==0)\r\n#set($next=\"\")\r\n#else\r\n#set($next=\"$nmin,$nmax\")\r\n#end\r\n##取得上一页ID范围\r\n#set($sql3 =\"select max(id) as max,min(id) as min from (select id from user_pubtel where name like ? and id < ? order by id desc limit ?) as user\")\r\n#set($para3=\"VARCHAR=$pname;INT=$min;INT=$pnum\")\r\n#set($resu3=$EVENT.dbEvent.getResult($dbsource,$sql3,$para3))\r\n#foreach($key in $resu3)\r\n#set($bmin=$key.get(\'min\'))\r\n#set($bmax=$key.get(\'max\'))\r\n#end\r\n#if(!$bmin || $bmin.length() ==0)\r\n#set($back=\"\")\r\n#else\r\n#set($back=\"$bmin,$bmax\")\r\n#end\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n					<Item Name=\"Next\">$next</Item>\r\n					<Item Name=\"Back\">$back</Item>\r\n				</DataPropList >\r\n#foreach($Record in $fundata)\r\n#set($msgid=$Record.get(\'id\'))\r\n				<Record MSGID=\"\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n						<Field Name=\"id\" type=\"string\" base64=\"0\">$msgid</Field>\r\n						<Field Name=\"name\" type=\"string\" base64=\"0\">$Record.get(\'name\')</Field>\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n#end\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '27', '2422', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'DB_INVOKE', '27', '2423', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">$ResponseInfos.get(\'Code\')</Info>\r\n	<Info Name=\"Reason\">$ResponseInfos.get(\'Reason\')</Info>\r\n</Head>\r\n<Body Text=\"通讯录个人列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource1.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserSearch#Name=Local:searchStr.Text#Number=10#target=_self\"/>\r\n		<ListView Name=\"listView1\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\" ItemActivate=\"url:c=AddListUserInfo#Id=Local:listView1.SelectedValue\">\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'id\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n	<MenuItem Text=\"返回上一级\" Click=\"cmd:Back()\" />\r\n\r\n</Body>\r\n</msc>\r\n</Response>', '27', '2424', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '12', '2922', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##任务列表\r\n#set($xsl=$funcprof.get(\'RWLBXSL1\'))\r\n#set($Url=\"\")\r\n#set($__Click=\"\")\r\n##判断Cur是否为空串,如果为空，显示任务列表的第一页，如果不为空显示分页\r\n#if($Req_Fields.get(\'Cur\')==\"\")\r\n#if($Req_Fields.get(\'CurType\') == \"0\")\r\n#set($Url=\"$unitprof.get(\'BS_SYSTEM_DIR\')/system/taskbox.nsf/ProcessingTaskWebMobile?OpenForm\")\r\n#else\r\n#set($Url=\"$unitprof.get(\'BS_SYSTEM_DIR\')/system/taskbox.nsf/UnProcessedTaskWebMobile?OpenForm\")\r\n#end\r\n#else\r\n##如果Cur不为空，解析出分页的指向的地址\r\n#set($Curmap=$EVENT.bsEvent.getCurData($Req_Fields.get(\'Cur\')))\r\n#set($Url=$Curmap.get(\'Cur\'))\r\n#set($__Click=$Curmap.get(\'__Click\'))\r\n#end\r\n##\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$Url\" )\r\n#set( $fun_method = \"POST\" )\r\n#set( $fun_post_para = \"__Click=__Click\" )\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $fundata = $EVENT.bsEvent.getData($fun_method,$fun_post_para,$fun_url,$xsl,$CONTEXT) )\r\n##翻页信息具有特殊字符需要特殊处理，先组合成xml文件\r\n#set( $Next=\"<info key=\'Data\'><info key=\'__Click\'>$fundata.get(\'Next\')</info><info key=\'Cur\'>$fundata.get(\'Cur\')</info></info>\")\r\n#set( $Back=\"<info key=\'Data\'><info key=\'__Click\'>$fundata.get(\'Back\')</info><info key=\'Cur\'>$fundata.get(\'Cur\')</info></info>\")\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n##将组合的翻页信息进行加密处理掉特殊字符\r\n					<Item Name=\"Next\">$EVENT.envEvent.base64Encode($Next)</Item>\r\n					<Item Name=\"Back\">$EVENT.envEvent.base64Encode($Back)</Item>\r\n				</DataPropList >\r\n##遍历取出公告列表需要显示的内容\r\n#foreach($Record in $fundata.get(\'Data\'))\r\n##列表的MSGID包括特殊转义字符，需要进行加密处理\r\n#set($msgid=$EVENT.envEvent.base64Encode($Record.get(\'Data\').get(\'MSGID\')))\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n						<Field Name=\"Type\" type=\"string\" base64=\"0\">$Record.get(\'Data\').get(\'Type\')</Field>\r\n						<Field Name=\"KeyString\" type=\"string\" base64=\"0\">$Record.get(\'Data\').get(\'KeyString\')</Field>\r\n						<Field Name=\"MSGID\" type=\"string\" base64=\"0\">$msgid</Field>\r\n#if(!($appprof.get($Record.get(\'Data\').get(\'Type\')) ))\r\n						<Field Name=\"PageType\" type=\"string\" base64=\"0\"></Field>\r\n#else\r\n						<Field Name=\"PageType\" type=\"string\" base64=\"0\">$appprof.get($Record.get(\'Data\').get(\'Type\'))</Field>\r\n#end\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n#end\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '12', '2923', null);
INSERT INTO `function_prof` VALUES ('REQUEST_TEMPLATE', '<Request>\r\n	<RequestInfos>\r\n		<Info Name=\"RequestCode\">${RequestCode}</Info>\r\n		<Info Name=\"RequestUnitCode\"></Info>\r\n		<Info Name=\"RequestUserLoginName\">${Browser_Username}</Info>\r\n		<Info Name=\"RequestUserPassword\">${Browser_Password}</Info>\r\n		<Info Name=\"RequestAuthString\">${RequestAuthString}</Info>\r\n		<Info Name=\"ClientSysType\">${ClientSysType}</Info>\r\n		<Info Name=\"Session\">${Session}</Info>\r\n	</RequestInfos>\r\n	<PassContent>\r\n<![CDATA[\r\n<Data>\r\n	<DataHead>\r\n	</DataHead>\r\n	<FieldList>\r\n		<Field Name=\"Cur\">${Cur}</Field>\r\n		<Field Name=\"CurType\">${CurType}</Field>\r\n	</FieldList>\r\n</Data>]]>\r\n	</PassContent>\r\n</Request>', '12', '2924', null);
INSERT INTO `function_prof` VALUES ('RWLBXSL1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\">\r\n<xsl:variable name=\"li\"><![CDATA[\']]></xsl:variable>\r\n<!-- 通过xpath取得翻页标示-->\r\n<xsl:variable name=\"back1\" select=\"/HTML/BODY/FORM/DIV[2]/TABLE/TR/TD/DIV/A[1]/@onclick\"/>\r\n<xsl:variable name=\"back2\" select=\"substring-after($back1,$li)\"/>\r\n<xsl:variable name=\"back\" select=\"substring-before($back2,$li)\"/>\r\n<xsl:variable name=\"next1\" select=\"/HTML/BODY/FORM/DIV[2]/TABLE/TR/TD/DIV/A[2]/@onclick\"/>\r\n<xsl:variable name=\"next2\" select=\"substring-after($next1,$li)\"/>\r\n<xsl:variable name=\"next\" select=\"substring-before($next2,$li)\"/>\r\n<!-- 通过xpath取得翻页url-->\r\n<xsl:variable name=\"cur\" select=\"/HTML/BODY/FORM/@action\"/>\r\n	<map key=\'Data\'>\r\n		<info key=\'Code\'>1</info>\r\n		<map key=\'Data\'>\r\n			<!-- 调用匹配模版-->\r\n			<xsl:apply-templates select=\"/HTML/BODY/FORM/DIV[2]/TABLE/TR[1]/TD/SPAN/FONT\"/>\r\n		</map>\r\n		<info key=\'Next\'><xsl:value-of select=\"$next\"/></info>\r\n		<info key=\'Back\'><xsl:value-of select=\"$back\"/></info>\r\n		<info key=\'Cur\'><xsl:value-of select=\"$cur\"/></info>\r\n	</map>\r\n</xsl:template>\r\n<!-- 组装模版，取得需要的数据-->\r\n<xsl:template match=\"/HTML/BODY/FORM/DIV[2]/TABLE/TR[1]/TD/SPAN/FONT/TABLE\"> \r\n	<xsl:variable name=\"key\"><![CDATA[./]]></xsl:variable>\r\n	<xsl:variable name=\"fen\"><![CDATA[\']]></xsl:variable>\r\n	<xsl:variable name=\"dir\" select=\"//INPUT[@name=\'DbFilePath\']/@value\"/>\r\n	<xsl:for-each select=\"TR[@valign=\'top\']\">\r\n		<list key=\'Data\'>\r\n			<info key=\'Type\'><xsl:value-of select=\"TD[1]/A/.\"/></info>\r\n			<info key=\'MSGID\'><xsl:value-of select=\"concat(\'/\',$dir,\'/\',substring-before(substring-after(TD[2]/A/@onclick,$key),$fen))\"/></info>\r\n			<info key=\'KeyString\'><xsl:value-of select=\"TD[2]/A/@title\"/></info>		\r\n		</list>	\r\n	</xsl:for-each>	\r\n</xsl:template>\r\n</xsl:stylesheet>', '12', '2925', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##任务项列表\r\n<html>\r\n<head>\r\n<title>任务项列表</title>\r\n    <link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n<script type= \"text/javascript\"> \r\nfunction sub_form(f,id,type){ \r\n    document.forms[0].Id.value=id;\r\n    document.forms[0].RequestCode.value=type;\r\n    f.submit(); \r\n}\r\nfunction sub_cur(f,cur){ \r\n    document.forms[0].Cur.value=cur;\r\n    f.submit(); \r\n}\r\n</script> \r\n</head>\r\n<body bgcolor=\"ffffff\" leftmargin=\"0\" topmargin=\"20\">\r\n<form name=\"form\" action=\"browser\" method=\"post\">\r\n<table align=\"center\" width=\"240\" border=\"3\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"EAE8E8\">\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n	<tr>\r\n		<td width=\"30%\">${fields.get(\'Type\').value}</td>\r\n		<td width=\"70%\"><a href=\"javascript:sub_form(document.forms[0],\'${fields.get(\'MSGID\').value}\',\'${fields.get(\'PageType\').value}\');\">${fields.get(\'KeyString\').value}<a></td>\r\n	</tr>\r\n#end\r\n</table>\r\n<table align=\"center\" width=\"240\" height=\"20\" border=\"3\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"EAE8E8\">\r\n	<tr>\r\n		<td width=\"50%\" align=\"left\"><a href=\"javascript:sub_cur(document.forms[0],\'${dataprops.get(\'Back\')}\')\">上一页</a><td>\r\n		<td width=\"50%\" align=\"right\"><a href=\"javascript:sub_cur(document.forms[0],\'${dataprops.get(\'Next\')}\')\">下一页</a><td>\r\n	<tr>\r\n</table>\r\n<INPUT name=\"Session\" type=\"hidden\" value=\"$Session\"/>\r\n<INPUT name=\"Browser_Username\" type=\"hidden\" value=\"$Browser_Username\"/>\r\n<INPUT name=\"Browser_Password\" type=\"hidden\" value=\"$Browser_Password\"/>\r\n<input name=\"ClientSysType\" type=\"hidden\"  value=\"$ClientSysType\"/>\r\n<input name=\"RequestAuthString\" type=\"hidden\"  value=\"$RequestAuthString\"/>\r\n<INPUT name=\"RequestCode\" type=\"hidden\" value=\"$RequestCode\"/>\r\n<INPUT name=\"CurType\" type=\"hidden\" value=\"$CurType\"/>\r\n<INPUT name=\"RequestCode\" type=\"hidden\" value=\"\"/>\r\n<INPUT name=\"Cur\" type=\"hidden\" value=\"\"/>\r\n<INPUT name=\"Id\" type=\"hidden\" value=\"\"/>\r\n</form>\r\n</body>\r\n</html>', '12', '2926', 'ie_wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"任务箱列表\" Size=\"$width,$height\" >\r\n      <MouseGesturePanel eventL2R=\"cmd:Back()\" Dock=\"Fill\">\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*270)\r\n       <MyListView Name=\"listView1\" TitleColor=\"#ABCDEF\" DefaultIcon=\"dot5-2.gif\" SelectedIcon=\"dot5-2.gif\" ItemHeight=\"40\" ImageRect=\"0,0,60,40\" Size=\"$width,$height\"  AutoScroll=\"true\" ScrollWidth=\"14\">	\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n	        <MyListViewItem Title=\"${fields.get(\'Type\').value}\" Time=\"${fields.get(\'KeyString\').value}\" Click=\"url:c=${fields.get(\'PageType\').value}#Id=${fields.get(\'MSGID\').value}\"  />\r\n	#end\r\n       </MyListView>\r\n      </MouseGesturePanel>\r\n       <MenuItem Text=\"返回\" Click=\"cmd:Back()\"/>\r\n       <MenuItem Text=\"操作\">\r\n                <MenuItem Text=\"上一页\"  Click=\"url:c=TaskBoxList#Cur=${dataprops.get(\'Back\')}#target=_self\"/>\r\n                <MenuItem Text=\"下一页\"  Click=\"url:c=TaskBoxList#Cur=${dataprops.get(\'Next\')}#target=_self\"/>\r\n       </MenuItem>\r\n</Body>\r\n</msc>\r\n</Response>', '12', '2927', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"任务箱列表\" >\r\n      <MouseGesturePanel eventL2R=\"cmd:Back()\" Dock=\"Fill\">\r\n       <MyListView Name=\"listView1\" TitleColor=\"#ABCDEF\" DefaultIcon=\"dot5-2.gif\" SelectedIcon=\"dot5-2.gif\" ItemHeight=\"40\" ImageRect=\"0,0,60,40\" Size=\"240,270\"  AutoScroll=\"true\" ScrollWidth=\"14\">	\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n	        <MyListViewItem Title=\"${fields.get(\'Type\').value}\" Time=\"${fields.get(\'KeyString\').value}\" Click=\"url:c=${fields.get(\'PageType\').value}#Id=${fields.get(\'MSGID\').value}\"  />\r\n	#end\r\n       </MyListView>\r\n      </MouseGesturePanel>\r\n       <MenuItem Text=\"返回\" Click=\"cmd:Back()\"/>\r\n       <MenuItem Text=\"操作\">\r\n                <MenuItem Text=\"上一页\"  Click=\"url:c=TaskBoxList#Cur=${dataprops.get(\'Back\')}#target=_self\"/>\r\n                <MenuItem Text=\"下一页\"  Click=\"url:c=TaskBoxList#Cur=${dataprops.get(\'Next\')}#target=_self\"/>\r\n       </MenuItem>\r\n</Body>\r\n</msc>\r\n</Response>', '12', '2928', 'Brew');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n \r\n\r\n#set($ctl1X = 2)\r\n#set($num = 13)\r\n#set($num2 = 20)\r\n#set($lineHeight = 25)\r\n#set($labelHeight=20)\r\n#set($controlHeight=23)\r\n#set($x = 2)\r\n#set($y = 5)\r\n#set($lb1Width=70)\r\n#set($lb2Width=150)\r\n#set($ctl2X=$lb1Width+5)\r\n\r\n\r\n<msc>\r\n<Head>\r\n        <Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n	<Info Name=\"Id\">${fields.get(\'Id\').value}</Info>\r\n</Head>\r\n<Body  Text=\"公司收文详细\" BackColor=\"#FFFFFF\">\r\n         <Label Name=\"label1\" Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"文头:\"/>\r\n         #set($x = $ctl2X)\r\n\r\n         #set($temp_c=${fields.get(\'v_wentou\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         <Label Name=\"textBox1\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'v_wentou\').value}\"/>\r\n\r\n          #set($y = $y+$controlHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label2\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"收文号:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox2\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_wh\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n	  <Label Name=\"label3\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"收文日期:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox3\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_rq\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label4\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"来文类别:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox4\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_type\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label5\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"来文单位:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox5\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_lwdw\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label6\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"来文文号:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox6\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_lwwh\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label7\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"来文日期:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox7\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_lwrq\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label8\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"来文标题:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox8\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'title\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"labe9\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"附件标题:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox9\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'attachname\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label10\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"密级:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox10\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_mj\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label11\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"页数:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox11\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_ys\').value}\"/>\r\n          #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label12\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"主题词:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox12\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_ztc\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label13\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"缓急程度:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox13\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_hjcd\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label14\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"主办:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox14\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_zb\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label15\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"协办:\"/>\r\n         #set($x = $ctl2X)\r\n\r\n         #set($temp_c=${fields.get(\'v_xb\').value.length()}) 	\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         <Label Name=\"textBox15\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'v_xb\').value}\"/>\r\n          #set($y = $y+$controlHeight)\r\n\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label16\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"备注:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox16\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_bz\').value}\"/>\r\n         <Splitter Name=\"splitter1\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label166\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"附件:\"/>\r\n        #set($y = $y+$lineHeight)\r\n        <Attach  Location=\"$x,$y\"  Name=\"attachs1\" Width=\"220\" Source=\"\r\n        #foreach($attach in $record.attachs.get(\'attachs\'))\r\n        ${attach.get(\"Value\")}|${attach.get(\"URL\")},\r\n        #end\r\n        \"/>\r\n         #set($y = $y+50)\r\n         #set($x = $ctl1X)\r\n	 <Label Name=\"label17\"  Location=\"$x,$y\" Width=\"$lb1Width+2\" Text=\"党委批阅意见:\"/>\r\n	 <Label Name=\"textBox17\" Location=\"$x,$y\" Width=\"$lb2Width-2\" Text=\"${fields.get(\'v_dyyj_cal\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label18\"  Location=\"$x,$y\" Width=\"$lb1Width+2\" Text=\"行政批阅意见:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox18\" Location=\"$x,$y\" Width=\"$lb2Width-2\" Text=\"${fields.get(\'v_xyyj_cal\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label19\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"主办意见:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox19\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_zbyj_cal\').value}\"/>\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         \r\n        #if(${fields.get(\'v_xbyj_cal\').value.length()}>0)\r\n        #set($temp_a=${fields.get(\'v_xbyj_cal\').value.length()}) 	\r\n        #set($temp_a=$temp_a.length())\r\n        #set($temp_b=$temp_a/$num)\r\n        #set($temp_b=$temp_b+1)\r\n        #set($controlHeight=($temp_b*$labelHeight))\r\n     \r\n         #set($y = $y+$controlHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label26\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"协办意见:\"/>\r\n        #set($y = $y+$lineHeight)\r\n	 <Label Name=\"textBox26\" Location=\"$x,$y\"   Size=\"210,$controlHeight\" Text=\"${fields.get(\'v_xbyj_cal\').value}\"/>\r\n        #set($y = $y+$controlHeight)\r\n        #end\r\n\r\n        \r\n         #set($x = $ctl1X)\r\n \r\n         #if(${fields.get(\'MyYj\').value.length()}>0)        \r\n         	#set($x = $ctl1X)\r\n	 <Label Name=\"label24\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"我的意见:\"/>\r\n         	#set($x = $ctl2X)\r\n	 <Label Name=\"textBox24\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'MyYj\').value}\"/>\r\n        #end\r\n        #if(${fields.get(\'CanYjsr\').value}==\"true\")\r\n               #set($x = $ctl1X)\r\n                <Label Name=\"label25\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"请输入意见:\"/>\r\n                #set($y = $y+$lineHeight)\r\n	<TextBox Name=\"textBox25\" Location=\"$x,$y\" Size=\"210,100\" Multiline=\"True\"/>\r\n	#set($y = $y+100)\r\n         #end\r\n <Attach  Location=\"$x,$y\"   Name=\"attachs2\"/>\r\n  #if(${fields.get(\'Browse\').value.length()}>0)\r\n <MenuItem   Text=\"浏览正文\" Click=\"cmd:DownLoadFile(${fields.get(\'Browse\').value})\" />\r\n  #end\r\n  <MenuItem  Text=\"处理结束\" Click=\"url:c=OffDetailOver#Id=${fields.get(\'Id\').value}#Over=${fields.get(\'Over\').value}#V_Clyj_Edit_Temp=Local:textBox25.Text#target=_blank\" />\r\n</Body>\r\n</msc>\r\n#end\r\n </Response>', '15', '2934', 'Brew');
INSERT INTO `function_prof` VALUES ('GSSWXSL1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n		<xsl:variable name=\"li\"><![CDATA[\']]></xsl:variable>\r\n		<!-- 将公司收文的部分内容信息取出-->\r\n		<xsl:variable name=\"AttDB\" select=\"//INPUT[@type=\'hidden\'][@name=\'AttDB\']/@value\"/>\r\n		<xsl:variable name=\"ATTFile\"><![CDATA[/$file/]]></xsl:variable>\r\n		<xsl:variable name=\"docid\" select=\"//INPUT[@type=\'hidden\'][@name=\'docid\']/@value\"/>\r\n		<xsl:variable name=\"ftpip\" select=\"//INPUT[@type=\'hidden\'][@name=\'ftpserverip\']/@value\"/>\r\n		<xsl:variable name=\"ftpport\" select=\"//INPUT[@type=\'hidden\'][@name=\'ftpport\']/@value\"/>\r\n		<xsl:variable name=\"ftpuser\" select=\"//INPUT[@type=\'hidden\'][@name=\'ftpusername\']/@value\"/>\r\n		<xsl:variable name=\"ftpurl\" select=\"//INPUT[@type=\'hidden\'][@name=\'FtpInfo\']/@value\"/>\r\n		<xsl:variable name=\"ftppass\" select=\"substring-after(substring-before($ftpurl,\'@\'),concat($ftpuser,\':\'))\"/>\r\n		<xsl:variable name=\"flag\">ftp_ftp</xsl:variable>\r\n		<!-- 浏览正文的逻辑标志位-->\r\n		<xsl:variable name=\"checked\" select=\"//INPUT[@type=\'hidden\'][@name=\'checked\']/@value\"/>\r\n		<map key=\"Data\">\r\n			<info key=\'Code\'>1</info>\r\n			<map key=\'Data\'>\r\n				<!-- 将公司收文的内容进行组装-->\r\n				<info key=\"Id\">\r\n					<xsl:value-of select=\"//FORM/@action\"/>\r\n				</info>\r\n				<info key=\"v_wentou\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_wentoucopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_wh\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_wh\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_type\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_typeCopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_rq\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_rq\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_lwdw\">\r\n					<xsl:value-of select=\"//TABLE/TR[6]/TD[3]/FONT/INPUT/@value\"/>\r\n				</info>\r\n				<info key=\"v_lwwh\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_lwwhcopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_lwrq\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_lwrqcopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"title\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'Titlecopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"attachname\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'AttachNamecopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_mj\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_mjcopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_ys\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_yscopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_ztc\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_ztccopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_hjcd\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_hjcdcopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_zb\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_zbCopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_xb\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_xbcopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_bz\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_bzcopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_dyyj_cal\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_dyyj_cal\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_xyyj_cal\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_xyyj_cal\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_zbyj_cal\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_zbyj_cal\']/@value\"/>\r\n				</info>\r\n				<info key=\"v_xbyj_cal\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_xbyj_cal\']/@value\"/>\r\n				</info>\r\n				<info key=\"MyYj\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'myyj\']/@value\"/>\r\n				</info>\r\n				<info key=\"Browse\">\r\n					<!-- 通过浏览正文的utf-8编码判断是否存在此按钮-->\r\n					<xsl:if test=\"count(//IMG[contains(@src,\'%E6%B5%8F%E8%A7%88%E6%AD%A3%E6%96%87\')]) > 0\">\r\n						<xsl:if test=\"not($checked = \'1\')\">\r\n							<xsl:value-of select=\"concat($flag,$ftpip,$flag,$ftpuser,$flag,$ftpport,$flag,$ftppass,$flag,$docid,\'(modify).doc\')\"/>\r\n						</xsl:if>\r\n						<xsl:if test=\"$checked = \'1\'\">\r\n							<xsl:value-of select=\"concat($flag,$ftpip,$flag,$ftpuser,$flag,$ftpport,$flag,$ftppass,$flag,$docid,\'.doc\')\"/>\r\n						</xsl:if>\r\n					</xsl:if>\r\n				</info>\r\n				<info key=\"Over\">\r\n					<!-- 通过处理结束的utf-8编码判断是否存在此按钮-->\r\n					<xsl:if test=\"count(//IMG[contains(@src,\'%E5%A4%84%E7%90%86%E7%BB%93%E6%9D%9F\')]) > 0\">\r\n						<xsl:value-of select=\"concat(\'__Click=\',substring-before(substring-after(//INPUT[@type=\'button\' and @name=\'Signcljs\']/@onclick,$li),$li))\"/>\r\n						<xsl:apply-templates select=\"//INPUT[@type=\'hidden\'] | //INPUT[@name=\'docid\']\"/>\r\n					</xsl:if>\r\n				</info>\r\n				<info key=\"CanYjsr\">\r\n					<!-- 通过意见输入的utf-8编码判断是否存在此按钮-->\r\n					<xsl:if test=\"count(//IMG[contains(@src,\'%E6%84%8F%E8%A7%81%E8%BE%93%E5%85%A5\')]) > 0\">\r\n						<xsl:text>true</xsl:text>\r\n					</xsl:if>\r\n					<xsl:if test=\"count(//IMG[contains(@src,\'%E6%84%8F%E8%A7%81%E8%BE%93%E5%85%A5\')]) = 0\">\r\n						<xsl:text>false</xsl:text>\r\n					</xsl:if>\r\n				</info>\r\n			</map>\r\n			<xsl:if test=\"not(contains(//TABLE/TR[2]/TD/SELECT/OPTION[1]/text(),\'没有附件\'))\">\r\n				<map key=\'Attc\'>\r\n					<!-- 调用匹配模版，取得附件信息-->\r\n					<xsl:apply-templates select=\"//TABLE/TR[2]/TD/SELECT\"/>\r\n				</map>\r\n			</xsl:if>\r\n		</map>\r\n	</xsl:template>\r\n	<!-- 模版，取得附件信息-->\r\n	<xsl:template match=\"//TABLE/TR[2]/TD/SELECT\">\r\n		<xsl:variable name=\"AttDocID\" select=\"//INPUT[@type=\'hidden\'][@name=\'AttDocID\']/@value\"/>\r\n		<xsl:variable name=\"AttDB\" select=\"//INPUT[@type=\'hidden\'][@name=\'AttDB\']/@value\"/>\r\n		<xsl:variable name=\"ATTFile\"><![CDATA[/$file/]]></xsl:variable>\r\n		<xsl:for-each select=\"OPTION\">\r\n			<list key=\'Data\'>\r\n				<info key=\'tag\'>\r\n					<xsl:value-of select=\"concat($AttDB,\'/ByDate/\',$AttDocID,$ATTFile,text())\"/>\r\n				</info>\r\n				<info key=\'title\'>\r\n					<xsl:value-of select=\"text()\"/>\r\n				</info>\r\n			</list>\r\n		</xsl:for-each>\r\n	</xsl:template>\r\n	<xsl:template match=\"//INPUT[@type=\'hidden\'] | //INPUT[@name=\'docid\']\">\r\n		<xsl:value-of select=\"concat(\'!_!\',./@name,\'=\',./@value)\"/>\r\n	</xsl:template>\r\n</xsl:stylesheet>', '15', '2935', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##公司收文\r\n#set($xsl=$funcprof.get(\'GSSWXSL1\'))\r\n##将公司收文的id信息进行解密\r\n#set($Url=$EVENT.envEvent.base64Decode($Req_Fields.get(\'Id\')))\r\n##\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$Url\" )\r\n#set( $fun_method = \"GET\" )\r\n#set( $fun_post_para = \"\" )\r\n#set( $fundata = $EVENT.bsEvent.getData($fun_method,$fun_post_para,$fun_url,$xsl,$CONTEXT) )\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n				</DataPropList >\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n##遍历显示正文内容\r\n#foreach($key in $fundata.get(\'Data\').keySet())\r\n#if($key == \'Id\' || $key == \'Over\')\r\n##流转标识包括特殊转义字符需要进行加密处理\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$EVENT.envEvent.base64Encode($fundata.get(\'Data\').get($key))</Field>\r\n#else\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$fundata.get(\'Data\').get($key)</Field>\r\n#end\r\n#end\r\n					</FieldList>\r\n					<AttachList>\r\n##输出附件的绝对URL地址及附件名称\r\n#foreach($key in $fundata.get(\'Attc\'))\r\n						<Attach URL=\"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$key.get(\'Data\').get(\'tag\')\" format=\"\" category=\"\">$key.get(\'Data\').get(\'title\')</Attach>\r\n#end\r\n					</AttachList>\r\n				</Record>\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '15', '2936', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '15', '2937', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n \r\n\r\n#set($ctl1X = 2)\r\n#set($num = 13)\r\n#set($num2 = 20)\r\n#set($lineHeight = 25)\r\n#set($labelHeight=20)\r\n#set($controlHeight=23)\r\n#set($x = 2)\r\n#set($y = 5)\r\n#set($lb1Width=70)\r\n#set($lb2Width=150)\r\n#set($ctl2X=$lb1Width+5)\r\n\r\n\r\n<msc>\r\n<Head>\r\n        <Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n	<Info Name=\"Id\">${fields.get(\'Id\').value}</Info>\r\n</Head>\r\n<Body  Text=\"公司收文详细\" BackColor=\"#FFFFFF\">\r\n         <Label Name=\"label1\" Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"文头:\"/>\r\n         #set($x = $ctl2X)\r\n\r\n         #set($temp_c=${fields.get(\'v_wentou\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         <Label Name=\"textBox1\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'v_wentou\').value}\"/>\r\n\r\n          #set($y = $y+$controlHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label2\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"收文号:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox2\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_wh\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n	  <Label Name=\"label3\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"收文日期:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox3\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_rq\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label4\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"来文类别:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox4\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_type\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label5\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"来文单位:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox5\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_lwdw\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label6\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"来文文号:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox6\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_lwwh\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label7\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"来文日期:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox7\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_lwrq\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label8\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"来文标题:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox8\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'title\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"labe9\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"附件标题:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox9\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'attachname\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label10\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"密级:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox10\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_mj\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label11\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"页数:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox11\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_ys\').value}\"/>\r\n          #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label12\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"主题词:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox12\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_ztc\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label13\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"缓急程度:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox13\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_hjcd\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label14\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"主办:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox14\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_zb\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label15\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"协办:\"/>\r\n         #set($x = $ctl2X)\r\n\r\n         #set($temp_c=${fields.get(\'v_xb\').value.length()}) 	\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n         <Label Name=\"textBox15\" Location=\"$x,$y\" Width=\"$lb2Width\" Height=\"$controlHeight\" Text=\"${fields.get(\'v_xb\').value}\"/>\r\n          #set($y = $y+$controlHeight)\r\n\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label16\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"备注:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox16\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_bz\').value}\"/>\r\n         <Splitter Name=\"splitter1\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label166\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"附件:\"/>\r\n        #set($y = $y+$lineHeight)\r\n        <Attach  Location=\"$x,$y\"  Name=\"attachs1\" Width=\"220\" Source=\"\r\n        #foreach($attach in $record.attachs.get(\'attachs\'))\r\n        ${attach.get(\"Value\")}|${attach.get(\"URL\")},\r\n        #end\r\n        \"/>\r\n         #set($y = $y+50)\r\n         #set($x = $ctl1X)\r\n	 <Label Name=\"label17\"  Location=\"$x,$y\" Width=\"$lb1Width+2\" Text=\"党委批阅意见:\"/>\r\n	 <Label Name=\"textBox17\" Location=\"$x,$y\" Width=\"$lb2Width-2\" Text=\"${fields.get(\'v_dyyj_cal\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label18\"  Location=\"$x,$y\" Width=\"$lb1Width+2\" Text=\"行政批阅意见:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox18\" Location=\"$x,$y\" Width=\"$lb2Width-2\" Text=\"${fields.get(\'v_xyyj_cal\').value}\"/>\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label19\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"主办意见:\"/>\r\n         #set($x = $ctl2X)\r\n	 <Label Name=\"textBox19\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'v_zbyj_cal\').value}\"/>\r\n\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         \r\n        #if(${fields.get(\'v_xbyj_cal\').value.length()}>0)\r\n        #set($temp_a=${fields.get(\'v_xbyj_cal\').value.length()}) 	\r\n        #set($temp_a=$temp_a.length())\r\n        #set($temp_b=$temp_a/$num)\r\n        #set($temp_b=$temp_b+1)\r\n        #set($controlHeight=($temp_b*$labelHeight))\r\n     \r\n         #set($y = $y+$controlHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label26\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"协办意见:\"/>\r\n        #set($y = $y+$lineHeight)\r\n	 <Label Name=\"textBox26\" Location=\"$x,$y\"   Size=\"210,$controlHeight\" Text=\"${fields.get(\'v_xbyj_cal\').value}\"/>\r\n        #set($y = $y+$controlHeight)\r\n        #end\r\n\r\n        \r\n         #set($x = $ctl1X)\r\n \r\n         #if(${fields.get(\'MyYj\').value.length()}>0)        \r\n         	#set($x = $ctl1X)\r\n	 <Label Name=\"label24\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"我的意见:\"/>\r\n         	#set($x = $ctl2X)\r\n	 <Label Name=\"textBox24\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'MyYj\').value}\"/>\r\n        #end\r\n        #if(${fields.get(\'CanYjsr\').value}==\"true\")\r\n               #set($x = $ctl1X)\r\n                <Label Name=\"label25\"  Location=\"$x,$y\" Width=\"$lb1Width\" Text=\"请输入意见:\"/>\r\n                #set($y = $y+$lineHeight)\r\n	<TextBox Name=\"textBox25\" Location=\"$x,$y\" Size=\"210,100\" Multiline=\"True\"/>\r\n	#set($y = $y+100)\r\n         #end\r\n <Attach  Location=\"$x,$y\"   Name=\"attachs2\"/>\r\n  #if(${fields.get(\'Browse\').value.length()}>0)\r\n <MenuItem   Text=\"浏览正文\" Click=\"cmd:DownLoadFile(${fields.get(\'Browse\').value})\" />\r\n  #end\r\n  <MenuItem  Text=\"处理结束\" Click=\"url:c=OffDetailOver#Id=${fields.get(\'Id\').value}#Over=${fields.get(\'Over\').value}#V_Clyj_Edit_Temp=Local:textBox25.Text#target=_blank\" />\r\n</Body>\r\n</msc>\r\n#end\r\n </Response>', '15', '2938', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<msc>\r\n		<Head>\r\n			<Info Name=\"Code\">1</Info>\r\n			<Info Name=\"Reason\"/>\r\n			<Info Name=\"Id\">${fields.get(\'Id\').value}</Info>\r\n		</Head>\r\n		<Body Text=\"公务流转\">\r\n#set ($Title = ${fields.get(\'Title\')})\r\n#if(($Title)) \r\n         <Label Size=\"230,23\" Location=\"5,5\" Text=\"${Title.value}:\"/>\r\n#end\r\n#set ($NextNode = ${fields.get(\'NextNode\')})\r\n#if(($NextNode)) \r\n          <Label Location=\"5,30\" Size=\"60,23\" Text=\"下一环节:\"/>\r\n	  <MyComboBox Name=\"cbNextNode\" Size=\"150,23\" Location=\"70,30\" Source=\"${fields.get(\'NextNode\').value}\"/>  \r\n#end\r\n#set ($FlowDept = ${fields.get(\'FlowDept\')})\r\n#if(($FlowDept)) \r\n          <Label Location=\"5,55\" Size=\"60,23\" Text=\"下一部门:\"/>\r\n	  <MyComboBox Name=\"cbFlowDept\" Size=\"150,23\" Location=\"70,55\" Source=\"${fields.get(\'FlowDept\').value}\"/>  \r\n#end\r\n \r\n#set ($NextPersons = ${fields.get(\'NextPersons\')})\r\n#if(($NextPersons)) \r\n          <ListView Name=\"lvNextPersons\"  Source=\"${fields.get(\'NextPersons\').value}\" CheckBoxes=\"True\"  View=\"List\" Size=\"240,200\" />  \r\n#end\r\n#set ($SysMsg = ${fields.get(\'SysMsg\')})\r\n#if(($SysMsg)) \r\n#set($temp_a=${fields.get(\'SysMsg\').value.length()})\r\n#set($temp_b=$temp_a/20)\r\n#set($temp_b=$temp_b+1)\r\n#set($controlHeight=($temp_b*23))\r\n        <Label Name=\"lbSysMsg\" Size=\"230,$controlHeight\"  Text=\"${SysMsg.value}\"/>\r\n#end\r\n#set ($Over = ${fields.get(\'Over\')})\r\n#if(!($Over) || ($Over.value.length() == 0)) \r\n        <MenuItem Text=\"完成\" Click=\"cmd:Back()\"/>\r\n#else\r\n	#set($tmp_a=\"\")	\r\n	#if(($NextNode))\r\n	#set($tmp_a=\"Local:cbNextNode.SelectedItem\")\r\n	#end\r\n	#set($tmp_b=\"\")	\r\n	#if(($FlowDept))\r\n	#set($tmp_b=\"Local:cbFlowDept.SelectedItem\")\r\n	#end\r\n	<MenuItem Text=\"确定\" Click=\"url:c=OffDetailOver#Over=${Over.value}#V_Clyj_Edit_Temp=Local:lbSysMsg.Text#Id=${fields.get(\'Id\').value}#NextNode=$tmp_a#FlowDept=$tmp_b#NextPersons=Local:lvNextPersons.SelectedValues#target=_self\"/>\r\n#end\r\n	</Body>\r\n</msc>\r\n#end\r\n</Response>', '22', '2939', 'Brew');
INSERT INTO `function_prof` VALUES ('GWLZXSL1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n	<xsl:variable name=\"li\"><![CDATA[\']]></xsl:variable>\r\n	<map key=\"Data\">\r\n		<info key=\'Code\'>1</info>		\r\n		<map key=\'Data\'>\r\n			<!-- 取得流转id-->\r\n			<info key=\"Id\"><xsl:value-of select=\"//FORM/@action\"/></info>\r\n			<!-- 如果存在下一流转步骤，取出此信息-->\r\n			<xsl:if test=\"count(//SELECT[@name =\'NextNode\']) > 0\">\r\n			<info key=\'NextNode\'>\r\n				<!-- 调用匹配模版-->\r\n				<xsl:apply-templates select=\"//SELECT[@name =\'NextNode\']\"/>	\r\n			</info>	\r\n			</xsl:if>	\r\n			<!-- 如果存在流转部门，取出此信息-->	\r\n			<xsl:if test=\"count(//SELECT[@name=\'FlowDept\']) > 0\">\r\n			<info key=\'FlowDept\'>\r\n				<!-- 调用匹配模版-->\r\n				<xsl:apply-templates select=\"//SELECT[@name =\'FlowDept\']\"/>	\r\n			</info>	\r\n			</xsl:if>	\r\n			<!-- 如果存在下一流转动作，取出此信息-->		\r\n			<xsl:if test=\"count(//TD[text() =\'请选择下一流转动作\']) > 0\">\r\n			<info key=\'Title\'>\r\n				<xsl:value-of select=\"//TD[text() =\'请选择下一流转动作\']/text()\"/>\r\n			</info>	\r\n			</xsl:if>\r\n			<info key=\"Over\">\r\n			<xsl:if test=\"count(//INPUT[@type=\'button\' and @name=\'ProcessConfirm\']) > 0\">\r\n			<!-- 需要进行字符串连接-->		\r\n			<xsl:value-of select=\"concat(\'__Click=\',substring-before(substring-after(//INPUT[@type=\'button\' and @name=\'ProcessConfirm\']/@onclick,$li),$li))\"/><xsl:apply-templates select=\"//INPUT[@type=\'hidden\'] | //INPUT[@name=\'docid\']\"/>\r\n			</xsl:if>\r\n			</info>\r\n			<!-- 如果存在公文处理人，取出此信息-->		\r\n			<xsl:if test=\"count(//TD[text() =\'请选择公文处理人\']) > 0\">\r\n			<info key=\'Title\'>\r\n				<xsl:value-of select=\"//TD[text() =\'请选择公文处理人\']/text()\"/>\r\n			</info>\r\n			</xsl:if>\r\n			<xsl:if test=\"count(//INPUT[@name =\'NextPersons\']) > 1\">\r\n			<info key=\'NextPersons\'>\r\n				<!-- 调用匹配模版-->\r\n				<xsl:apply-templates select=\"//INPUT[@name =\'NextPersons\']\"/>	\r\n			</info>	\r\n			</xsl:if>\r\n			<!-- 如果存在系统提示信息，取出此信息-->\r\n			<xsl:if test=\"count(/HTML/BODY/DIV[2]) > 0\">\r\n			<info key=\'SysMsg\'>\r\n				<xsl:value-of select=\"/HTML/BODY/DIV[2]/text()\"/>\r\n			</info>	\r\n			</xsl:if>\r\n			<xsl:if test=\"count(//P/FONT[text() =\'系统提示信息\']) > 0\">\r\n			<info key=\'Title\'>\r\n				<xsl:value-of select=\"//P/FONT[text() =\'系统提示信息\']/text()\"/>\r\n			</info>	\r\n			</xsl:if>\r\n		</map>	\r\n	</map>	\r\n	</xsl:template>\r\n	<xsl:template match=\"//SELECT[@name =\'NextNode\']\"> \r\n		<xsl:for-each select=\"OPTION\">\r\n			<xsl:value-of select=\"concat(text(),\'!_!\')\"/>\r\n		</xsl:for-each>\r\n	</xsl:template>\r\n	<xsl:template match=\"//SELECT[@name=\'FlowDept\']\"> \r\n		<xsl:for-each select=\"OPTION\">\r\n			<xsl:value-of select=\"concat(text(),\'!_!\')\"/>\r\n		</xsl:for-each>\r\n	</xsl:template>\r\n	<xsl:template match=\"//INPUT[@name =\'NextPersons\']\"> 		\r\n			<xsl:value-of select=\"concat(./@value,\'!_!\')\"/>		\r\n	</xsl:template>\r\n	<xsl:template match=\"//INPUT[@type=\'hidden\'] | //INPUT[@name=\'docid\']\"> 		\r\n			<xsl:value-of select=\"concat(\'!_!\',./@name,\'=\',./@value)\"/>		\r\n</xsl:template>\r\n</xsl:stylesheet>', '22', '2940', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##公文流转\r\n#set($xsl=$funcprof.get(\'GWLZXSL1\'))\r\n##解密取得流转ID\r\n#set($Url=$EVENT.envEvent.base64Decode($Req_Fields.get(\'Id\')))\r\n#set($Url=$Url.replaceAll(\'&amp;\', \'&\'))\r\n##解密取得流转over\r\n#set($over=$EVENT.envEvent.base64Decode($Req_Fields.get(\'Over\')).replaceAll(\'&amp;\', \'&\'))\r\n#set($v_clyj_edit_temp=$Req_Fields.get(\'V_Clyj_Edit_Temp\'))\r\n#set($nextNode=$Req_Fields.get(\'NextNode\'))\r\n##流转人员\r\n#set($persons=$Req_Fields.get(\'NextPersons\'))\r\n#if($persons.length() > 1)\r\n#set($persons=$persons.substring(1))\r\n#set($persons=$persons.replaceAll(\',\',\'!_!\'))\r\n#end\r\n##流转部门\r\n#set($flowDept=$Req_Fields.get(\'FlowDept\'))\r\n#set($fun_post_para = \"\")\r\n##\r\n##根据流转参数是否为空，构造提交参数\r\n#if($v_clyj_edit_temp && $v_clyj_edit_temp.length() > 0 )\r\n#set( $fun_post_para = \"v_clyj_edit_temp=v_clyj_edit_temp,$fun_post_para\")\r\n#elseif($nextNode && $nextNode.length() > 0 )\r\n#set( $fun_post_para = \"NextNode=nextNode,c_group=nextNode,NextPersonSingle=nextNode,$fun_post_para\")\r\n#elseif($persons && $persons.length() > 0 )\r\n#set($nextPersons=$persons.split(\'!_!\'))\r\n#set( $fun_post_para = \"NextPersons=nextPersons,$fun_post_para\")\r\n#elseif($flowDept && $flowDept.length() > 0 )\r\n#set( $fun_post_para = \"FlowDept=flowDept,\")\r\n#end\r\n##还需要向流转参数加入一些辅助信息\r\n#set($fun_post_para = $EVENT.bsEvent.addFieldsMap($over.split(\'!_!\'),$fun_post_para,$CONTEXT))\r\n##\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$Url\" )\r\n#set( $fun_method = \"POST\" )\r\n##提交触发事件\r\n#set( $fundata = $EVENT.bsEvent.getData($fun_method,$fun_post_para,$fun_url,$xsl,$CONTEXT) )\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n				</DataPropList >\r\n				<Record MSGID=\"\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n#foreach($key in $fundata.get(\'Data\').keySet())\r\n#if($key == \'Id\' || $key == \'Over\')\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$EVENT.envEvent.base64Encode($fundata.get(\'Data\').get($key))</Field>\r\n#else\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$fundata.get(\'Data\').get($key)</Field>\r\n#end\r\n#end\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '22', '2941', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '22', '2942', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<msc>\r\n		<Head>\r\n			<Info Name=\"Code\">1</Info>\r\n			<Info Name=\"Reason\"/>\r\n			<Info Name=\"Id\">${fields.get(\'Id\').value}</Info>\r\n		</Head>\r\n		<Body Text=\"公务流转\">\r\n#set ($Title = ${fields.get(\'Title\')})\r\n#if(($Title)) \r\n         <Label Size=\"230,23\" Location=\"5,5\" Text=\"${Title.value}:\"/>\r\n#end\r\n#set ($NextNode = ${fields.get(\'NextNode\')})\r\n#if(($NextNode)) \r\n          <Label Location=\"5,30\" Size=\"60,23\" Text=\"下一环节:\"/>\r\n	  <MyComboBox Name=\"cbNextNode\" Size=\"150,23\" Location=\"70,30\" Source=\"${fields.get(\'NextNode\').value}\"/>  \r\n#end\r\n#set ($FlowDept = ${fields.get(\'FlowDept\')})\r\n#if(($FlowDept)) \r\n          <Label Location=\"5,55\" Size=\"60,23\" Text=\"下一部门:\"/>\r\n	  <MyComboBox Name=\"cbFlowDept\" Size=\"150,23\" Location=\"70,55\" Source=\"${fields.get(\'FlowDept\').value}\"/>  \r\n#end\r\n \r\n#set ($NextPersons = ${fields.get(\'NextPersons\')})\r\n#if(($NextPersons)) \r\n          <ListView Name=\"lvNextPersons\"  Source=\"${fields.get(\'NextPersons\').value}\" CheckBoxes=\"True\"  View=\"List\" Size=\"240,200\" />  \r\n#end\r\n#set ($SysMsg = ${fields.get(\'SysMsg\')})\r\n#if(($SysMsg)) \r\n#set($temp_a=${fields.get(\'SysMsg\').value.length()})\r\n#set($temp_b=$temp_a/20)\r\n#set($temp_b=$temp_b+1)\r\n#set($controlHeight=($temp_b*23))\r\n        <Label Name=\"lbSysMsg\" Size=\"230,$controlHeight\"  Text=\"${SysMsg.value}\"/>\r\n#end\r\n#set ($Over = ${fields.get(\'Over\')})\r\n#if(!($Over) || ($Over.value.length() == 0)) \r\n        <MenuItem Text=\"完成\" Click=\"cmd:Back()\"/>\r\n#else\r\n	#set($tmp_a=\"\")	\r\n	#if(($NextNode))\r\n	#set($tmp_a=\"Local:cbNextNode.SelectedItem\")\r\n	#end\r\n	#set($tmp_b=\"\")	\r\n	#if(($FlowDept))\r\n	#set($tmp_b=\"Local:cbFlowDept.SelectedItem\")\r\n	#end\r\n	<MenuItem Text=\"确定\" Click=\"url:c=OffDetailOver#Over=${Over.value}#V_Clyj_Edit_Temp=Local:lbSysMsg.Text#Id=${fields.get(\'Id\').value}#NextNode=$tmp_a#FlowDept=$tmp_b#NextPersons=Local:lvNextPersons.SelectedValues#target=_self\"/>\r\n#end\r\n	</Body>\r\n</msc>\r\n#end\r\n</Response>', '22', '2943', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"通讯录公司列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserSearch#Name=Local:searchStr.Text#Number=10\"/>\r\n		<ListView Name=\"listView1\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\"  ItemActivate=\"url:c=AddListDepartment#Id=Local:listView1.SelectedValue\" >\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'id\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n <MenuItem Text=\"返回\" Click=\"cmd:Back()\"/>\r\n</Body>\r\n</msc>\r\n</Response>', '23', '3379', 'Brew');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##公司通讯录\r\n##获取入口类型并设置到全局变量\r\n$EVENT.bsEvent.addUserData(\"From\",$Req_Fields.get(\'From\'),$CONTEXT)\r\n##\r\n##构造查询sql语句\r\n#set($sql1=\"select id,company_name as name from company order by seq_column\")\r\n##构造数据源\r\n#set($dbsource = \"addresslist\")\r\n##触发事件，开始执行sql查询，将查询的数据放入变量\r\n#set( $fundata = $EVENT.dbEvent.getResult($dbsource,$sql1,\'\'))\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n					<Item Name=\"Next\"></Item>\r\n					<Item Name=\"Back\"></Item>\r\n				</DataPropList >\r\n#foreach($Record in $fundata)\r\n#set($msgid=$Record.get(\'id\'))\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n						<Field Name=\"id\" type=\"string\" base64=\"0\">$msgid</Field>\r\n						<Field Name=\"name\" type=\"string\" base64=\"0\">$Record.get(\'name\')</Field>\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n#end\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '23', '3380', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'DB_INVOKE', '23', '3381', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"通讯录公司列表\" >\r\n	<ImageList Name=\"imagelist1\">\r\n		<Image Source=\"resource.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventL2R=\"cmd:Back()\" Size=\"240,268\">\r\n		<Label Text=\"关键字\" Size=\"40, 19\" Location=\"5, 4\"/>\r\n		<TextBox Name=\"searchStr\" Size=\"149, 21\" Location=\"49, 1\"/>\r\n		<Button Text=\"搜索\" Size=\"39, 21\" Location=\"199, 1\" Click=\"url:c=AddListUserSearch#Name=Local:searchStr.Text#Number=10\"/>\r\n		<ListView Name=\"listView1\" Location=\"0,24\" Size=\"240,244\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\"  ItemActivate=\"url:c=AddListDepartment#Id=Local:listView1.SelectedValue\" >\r\n			<ColumnHeader Width=\"225\" />\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n			<ListViewItem Text=\"${fields.get(\'name\').value}\" ImageIndex=\"0\" Tag=\"${fields.get(\'id\').value}\" />\r\n	#end\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n \r\n</Body>\r\n</msc>\r\n</Response>', '23', '3382', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"公告列表\" >\r\n      <MouseGesturePanel eventR2L=\"cmd:Back()\"  eventB2T=\"cmd:ScrollUp()\" eventT2B=\"cmd:ScrollDown()\" Dock=\"Fill\">\r\n       <MyListView Name=\"listView1\" TitleColor=\"#ABCDEF\" DefaultIcon=\"image/dot5-2.ipg\" SelectedIcon=\"image/dot5-2.jpg\" ItemHeight=\"40\" ImageRect=\"0,0,60,40\" Size=\"240,270\"  AutoScroll=\"true\" ScrollWidth=\"5\">	 \r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n	        <MyListViewItem  Title=\"${fields.get(\'title\').value}\" Time=\"${fields.get(\'date\').value}\" Click=\"url:c=BulletinDetail#Id=${record.MSGID}\" />\r\n	#end\r\n       </MyListView>\r\n      </MouseGesturePanel>\r\n       <MenuItem Text=\"返回\" Click=\"cmd:Back()\"></MenuItem>\r\n       <MenuItem Text=\"操作\">\r\n<MenuItem Text=\"上一页\"  Click=\"url:c=BulletinList#Cur=${dataprops.get(\'Back\')}#target=_self\"/>\r\n<MenuItem Text=\"下一页\"  Click=\"url:c=BulletinList#Cur=${dataprops.get(\'Next\')}#target=_self\"/>\r\n       </MenuItem>\r\n</Body>\r\n</msc>\r\n</Response>', '16', '3388', 'Brew');
INSERT INTO `function_prof` VALUES ('GGLBXSL1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n<xsl:variable name=\"li\"><![CDATA[\']]></xsl:variable>\r\n<!-- 通过xpath取得翻页标示-->\r\n<xsl:variable name=\"back\" select=\"substring-before(substring-after(//BODY/FORM/TABLE/TR/TD[2]/A[1]/@onclick,$li),$li)\"/>\r\n<xsl:variable name=\"next\" select=\"substring-before(substring-after(//BODY/FORM/TABLE/TR/TD[3]/A[1]/@onclick,$li),$li)\"/>		\r\n<map key=\'Data\'>\r\n		<info key=\'Code\'>1</info>\r\n		<map key=\'Data\'>\r\n			<!-- 调用匹配模版-->\r\n			<xsl:apply-templates select=\"//FONT\"/>		\r\n		</map>\r\n		<info key=\'Next\'><xsl:value-of select=\"$next\"/></info>\r\n		<info key=\'Back\'><xsl:value-of select=\"$back\"/></info>\r\n</map>\r\n</xsl:template>\r\n<!-- 组装模版，取得需要的数据-->\r\n<xsl:template match=\"//FONT/TABLE\"> \r\n	<!-- 遍历节点-->\r\n	<xsl:for-each select=\"TR[@valign=\'top\']\">\r\n	<list key=\'Data\'>\r\n			<info key=\'Date\'><xsl:value-of select=\"TD[1]/text()\"/></info>\r\n			<info key=\'Tag\'><xsl:value-of select=\"TD[4]/A/@href\"/></info>\r\n			<info key=\'Title\'><xsl:value-of select=\"TD[4]/A/A/@title\"/></info>\r\n	</list>			\r\n	</xsl:for-each>\r\n</xsl:template>\r\n</xsl:stylesheet>', '16', '3389', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##公告列表\r\n#set($xsl=$funcprof.get(\'GGLBXSL1\'))\r\n#set($Url=\"\")\r\n##判断Cur是否为空串,如果为空，显示任务列表的第一页，如果不为空显示分页地址\r\n#if($Req_Fields.get(\'Cur\') == \"\")\r\n#set($Url=\"/public/bulletin.nsf/ByDate?OpenView\")\r\n#else\r\n#set($Url=\"/public/bulletin.nsf/ByDate?OpenView&Click=\")\r\n#end\r\n##\r\n##构造完整的公告列表地址\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$unitprof.get(\'BS_SYSTEM_DIR\')$Url\" )\r\n#set($tempcur=$Req_Fields.get(\'Cur\'))\r\n#if($tempcur && $tempcur.length() > 0)\r\n#set($tempcur = $EVENT.envEvent.base64Decode($Req_Fields.get(\'Cur\')))\r\n#end\r\n#set( $fun_url = \"$fun_url$tempcur\" )\r\n#set( $fun_method = \"GET\" )\r\n#set( $fun_post_para = \"\" )\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $fundata = $EVENT.bsEvent.getData($fun_method,$fun_post_para,$fun_url,$xsl,$CONTEXT) )\r\n#set( $Next=\"$fundata.get(\'Next\')\") \r\n#set( $Back=\"$fundata.get(\'Back\')\") \r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n					<Item Name=\"Next\">$EVENT.envEvent.base64Encode($Next)</Item>\r\n					<Item Name=\"Back\">$EVENT.envEvent.base64Encode($Back)</Item>\r\n				</DataPropList >\r\n#foreach($Record in $fundata.get(\'Data\'))\r\n#set($msgid=$EVENT.envEvent.base64Encode($Record.get(\'Data\').get(\'Tag\')))\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n##遍历显示正文内容\r\n##foreach($key in $Record.get(\'Data\').keySet())\r\n						<Field Name=\"date\" type=\"string\" base64=\"0\">$Record.get(\'Data\').get(\'Date\')</Field>\r\n						<Field Name=\"tag\" type=\"string\" base64=\"0\">$msgid</Field>\r\n						<Field Name=\"title\" type=\"string\" base64=\"0\">$Record.get(\'Data\').get(\'Title\')</Field>Title\r\n##end\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n#end\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '16', '3390', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '16', '3391', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"公告列表\" Size=\"$width,$height\">\r\n      <MouseGesturePanel eventR2L=\"cmd:Back()\"  eventB2T=\"cmd:ScrollUp()\" eventT2B=\"cmd:ScrollDown()\" Dock=\"Fill\">\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*270)\r\n       <MyListView Name=\"listView1\" TitleColor=\"#ABCDEF\" DefaultIcon=\"dot5-2.gif\" SelectedIcon=\"dot5-2.gif\" ItemHeight=\"40\" ImageRect=\"0,0,60,40\" Size=\"$width,$height\"  AutoScroll=\"true\" ScrollWidth=\"14\">	 \r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n	        <MyListViewItem  Title=\"${fields.get(\'title\').value}\" Time=\"${fields.get(\'date\').value}\" Click=\"url:c=BulletinDetail#Id=${record.MSGID}\" />\r\n	#end\r\n       </MyListView>\r\n      </MouseGesturePanel>\r\n       <MenuItem Text=\"返回\" Click=\"cmd:Back()\"/>\r\n       <MenuItem Text=\"操作\">\r\n<MenuItem Text=\"上一页\"  Click=\"url:c=BulletinList#Cur=${dataprops.get(\'Back\')}#target=_self\"/>\r\n<MenuItem Text=\"下一页\"  Click=\"url:c=BulletinList#Cur=${dataprops.get(\'Next\')}#target=_self\"/>\r\n       </MenuItem>\r\n</Body>\r\n</msc>\r\n</Response>', '16', '3392', 'wm');
INSERT INTO `function_prof` VALUES ('YJLBXSL2', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n<map key=\'Data\'>\r\n		<info key=\'Code\'>1</info>\r\n		<map key=\'Data\'>\r\n			<!-- 调用匹配模版-->\r\n			<xsl:apply-templates select=\"//BODY\"/>		\r\n		</map>\r\n</map>\r\n</xsl:template>\r\n<!-- 组装模版，取得需要的数据-->\r\n<xsl:template match=\"//BODY\"> \r\n<xsl:variable name=\"li\"><![CDATA[/]]></xsl:variable>\r\n<xsl:variable name=\"la\"><![CDATA[=]]></xsl:variable>\r\n<xsl:for-each select=\"TABLE\">	\r\n	<xsl:for-each select=\"TR[position() > 1]\">\r\n	<list key=\'Data\'>\r\n			<info key=\'msgid\'><xsl:value-of select=\"TD[2]/A/@href\"/></info>\r\n			<info key=\'sender\'>\r\n			<xsl:if test=\"contains(TD[1]/text(),$li)\">\r\n			<xsl:value-of select=\"substring-before(substring-after(TD[1]/text(),$la),$li)\"/>\r\n			</xsl:if>\r\n			<xsl:if test=\"not(contains(TD[1]/text(),$li))\">\r\n			<xsl:value-of select=\"TD[1]/text()\"/>\r\n			</xsl:if>\r\n			</info>\r\n			<info key=\'title\'><xsl:value-of select=\"TD[2]/A/text()\"/></info>\r\n			<info key=\'type\'><xsl:value-of select=\"TD[3]/text()\"/></info>\r\n	</list>			\r\n	</xsl:for-each>	\r\n</xsl:for-each>\r\n</xsl:template>\r\n</xsl:stylesheet>', '18', '3399', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '18', '3400', null);
INSERT INTO `function_prof` VALUES ('YJLBXSL1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n	<xsl:variable name=\"li\"><![CDATA[\']]></xsl:variable>\r\n	<map key=\"Data\">\r\n		<info key=\'Code\'>1</info>\r\n		<!-- 取得第一次返回的有用数据-->\r\n		<map key=\'Data\'>\r\n			<info key=\"__Click\"><xsl:value-of select=\"substring-before(substring-after(//INPUT[@value=\'print\']/@onclick,$li),$li)\"/></info>\r\n			<info key=\"count\"><xsl:value-of select=\"//INPUT[@name=\'count\']/@value\"/></info>\r\n			<info key=\"form\"><xsl:value-of select=\"/HTML/BODY/FORM/@action\"/></info>\r\n			<info key=\"maildocidneed\"><xsl:value-of select=\"//INPUT[@name=\'maildocidneed\']/@value\"/></info>			\r\n		</map>	\r\n	</map>	\r\n	</xsl:template>\r\n</xsl:stylesheet>', '18', '3401', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##邮件列表\r\n#set($xsl=$funcprof.get(\'YJLBXSL1\'))\r\n##从个人邮件的全局变量中取得邮件服务器及邮件地址信息\r\n#set($mailServer=$EVENT.bsEvent.getUserData(\'mainPage\',\'MailInfo\',$CONTEXT).get(\'STRMAILSERVER\') )\r\n#set($tempstr=$EVENT.bsEvent.getUserData(\'mainPage\',\'MailInfo\',$CONTEXT).get(\'STRMAILADDRESS\') )\r\n#set($endindex = $tempstr.lastIndexOf(\"/\"))\r\n#set($mailAddress = $tempstr.substring(0,$endindex))\r\n##\r\n#set($nextPage=0)\r\n#set($backPage=0)\r\n##设置每页显示10条数据\r\n#set($rowCount=10)\r\n#set($begin=\"0\")\r\n#set($end=\"0\")\r\n#set($next=\"\")\r\n##将字符串转化成整型\r\n#set($cur = $EVENT.envEvent.StringToInteger($Req_Fields.get(\'Cur\')) )\r\n##\r\n#if($cur == 0)\r\n#set($cur =$cur +1)\r\n#set($next=\"\")\r\n#else\r\n#set($next=$cur)\r\n#end\r\n##构造第一次请求url地址\r\n#set($begin = ($cur - 1)*$rowCount + 1 )\r\n#set($end= $cur * $rowCount)\r\n##set($Url=\"/mailinterface.nsf/receivemail?OpenForm&strMailServer=mobileserver1&strMailAddress=mail/dianxin/admin_dx.nsf&begin=1&end=30\")\r\n#set($Url=\"/mailinterface.nsf/receivemail?OpenForm&strMailServer=$mailServer&strMailAddress=$mailAddress&begin=$begin&end=$end\")\r\n##\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$Url\" )\r\n#set( $fun_method = \"POST\" )\r\n#set( $fun_post_para = \"Cur=next,rowCount=rowCount\" )\r\n##触发事件，提交数据，取得下次请求需要提交的数据\r\n#set( $reqdata = $EVENT.bsEvent.getData($fun_method,$fun_post_para,$fun_url,$xsl,$CONTEXT) )\r\n##\r\n##准备下次提交数据\r\n#set( $xsl1=$funcprof.get(\'YJLBXSL2\'))\r\n#set( $Url= $EVENT.envEvent.replaceXmlEntity($reqdata.get(\'Data\').get(\'form\')) )\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$Url\" )\r\n##将上次请求的参数提交，再次请求，取得返回信息\r\n#set( $fundata = $EVENT.bsEvent.getDataNext($fun_method,$reqdata.get(\'Data\'),$fun_url,$xsl1,$CONTEXT) )\r\n####构造页面索引\r\n#set( $count =  $EVENT.envEvent.StringToInteger($reqdata.get(\'Data\').get(\'count\')) )\r\n#set( $pageCount=$count/$rowCount)\r\n##\r\n#if($pageCount== 0)\r\n#set($pageCount= $pageCount +1)\r\n#end\r\n##\r\n#if($cur < $pageCount)\r\n#set($nextPage=$cur+1)\r\n#else\r\n#set($nextPage=$cur)\r\n#end\r\n#if($cur > 1)\r\n#set($backPage=$cur - 1 )\r\n#else\r\n#set($backPage=$cur)\r\n#end\r\n##\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n					<Item Name=\"Next\">$nextPage</Item>\r\n					<Item Name=\"Back\">$backPage</Item>\r\n					<Item Name=\"PageCur\">$cur</Item>\r\n					<Item Name=\"PageCount\">$pageCount</Item>\r\n				</DataPropList >\r\n##遍历显示正文内容\r\n#foreach($Record in $fundata.get(\'Data\'))\r\n#set($msgid=$Record.get(\'Data\').get(\'msgid\').replaceAll(\'./copymail\', \'/mailinterface.nsf/copymail\'))\r\n#set($msgid=$EVENT.envEvent.base64Encode($msgid))\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n						<Field Name=\"sender\" type=\"string\" base64=\"0\">$Record.get(\'Data\').get(\'sender\')</Field>\r\n						<Field Name=\"title\" type=\"string\" base64=\"0\">$Record.get(\'Data\').get(\'title\')</Field>\r\n						<Field Name=\"type\" type=\"string\" base64=\"0\">$appprof.get($Record.get(\'Data\').get(\'type\'))</Field>\r\n						<Field Name=\"msgid\" type=\"string\" base64=\"0\">$msgid</Field>\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n#end\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '18', '3402', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##邮件列表\r\n#set($Back=${dataprops.get(\'Back\')})\r\n#set($Next=${dataprops.get(\'Next\')})\r\n#set($PageCur=${dataprops.get(\'PageCur\')})\r\n#set($PageCount=${dataprops.get(\'PageCount\')})\r\n#set($PageInfo=\"第\"+$PageCur+\"/\"+$PageCount+\"页\")\r\n<Response>\r\n<msc>\r\n<Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"邮件列表\" Name=\"MailList1\" Size=\"$width,$height\">\r\n      <MouseGesturePanel eventR2L=\"cmd:Back()\" eventB2T=\"cmd:ScrollUp()\" eventT2B=\"cmd:ScrollDown()\" Dock=\"Fill\">\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*250)\r\n       <MyListView Name=\"listView1\" TitleColor=\"#ABCDEF\" DefaultIcon=\"dot6.gif\" SelectedIcon=\"dot9-2.gif\" ItemHeight=\"40\" ScrollWidth=\"21\" ImageRect=\"0,0,60,40\" AutoScroll=\"true\" Size=\"$width,$height\">	 	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n	        <MyListViewItem Title=\"${fields.get(\'title\').value}\" Time=\"类型:${fields.get(\'type\').value}\" Click=\"url:c=MailDetail1#Id=${fields.get(\'msgid\').value}\"  />\r\n	#end\r\n       </MyListView>\r\n       <Label Text=\"$PageInfo\" Size=\"240, 20\" Location=\"0, 250\" TextAlign=\"TopRight\"/>\r\n      </MouseGesturePanel>\r\n       <MenuItem Text=\"返回\" Click=\"cmd:Back()\"/>\r\n       <MenuItem Text=\"操作\">\r\n#if($PageCur==$Back)\r\n  		<MenuItem Text=\"上一页\"  Enabled=\"false\"/>\r\n#else\r\n                <MenuItem Text=\"上一页\"  Click=\"url:c=MailList#Cur=${dataprops.get(\'Back\')}#target=_self\"/>\r\n#end\r\n#if($PageCur==$Next)\r\n  		<MenuItem Text=\"下一页\"  Enabled=\"false\"/>\r\n#else\r\n                <MenuItem Text=\"下一页\"  Click=\"url:c=MailList#Cur=${dataprops.get(\'Next\')}#target=_self\"/>\r\n#end\r\n       </MenuItem>\r\n</Body>\r\n</msc>\r\n </Response>', '18', '3403', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##邮件列表\r\n#set($Back=${dataprops.get(\'Back\')})\r\n#set($Next=${dataprops.get(\'Next\')})\r\n#set($PageCur=${dataprops.get(\'PageCur\')})\r\n#set($PageCount=${dataprops.get(\'PageCount\')})\r\n#set($PageInfo=\"第\"+$PageCur+\"/\"+$PageCount+\"页\")\r\n<Response>\r\n<msc>\r\n<Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"邮件列表\" Name=\"MailList1\">\r\n      <MouseGesturePanel eventR2L=\"cmd:Back()\" eventB2T=\"cmd:ScrollUp()\" eventT2B=\"cmd:ScrollDown()\" Dock=\"Fill\">\r\n	<Label Text=\"$PageInfo\" Size=\"240, 20\" Location=\"0, 250\" TextAlign=\"TopRight\"/>\r\n       <MyListView Name=\"listView1\" TitleColor=\"#ABCDEF\" DefaultIcon=\"image/dot6.ipg\" SelectedIcon=\"image/dot9-2.jpg\" ItemHeight=\"40\" ScrollWidth=\"13\" ImageRect=\"0,0,60,40\" AutoScroll=\"true\" Size=\"240,250\" Location=\"1, 1\" >	 	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n	        <MyListViewItem Title=\"${fields.get(\'title\').value}\" Time=\"类型:${fields.get(\'type\').value}\" Click=\"url:c=MailDetail1#Id=${fields.get(\'msgid\').value}\"  />\r\n	#end\r\n       </MyListView>\r\n      </MouseGesturePanel>\r\n       <MenuItem Text=\"返回\" Click=\"cmd:Back()\"/>\r\n        <MenuItem Text=\"操作\">\r\n#if($PageCur==$Back)\r\n  		<MenuItem Text=\"上一页\"  Enabled=\"false\"/>\r\n#else\r\n                <MenuItem Text=\"上一页\"  Click=\"url:c=MailList#Cur=${dataprops.get(\'Back\')}#target=_self\"/>\r\n#end\r\n#if($PageCur==$Next)\r\n  		<MenuItem Text=\"下一页\"  Enabled=\"false\"/>\r\n#else\r\n                <MenuItem Text=\"下一页\"  Click=\"url:c=MailList#Cur=${dataprops.get(\'Next\')}#target=_self\"/>\r\n#end\r\n       </MenuItem>\r\n</Body>\r\n</msc>\r\n </Response>', '18', '3404', 'Brew');
INSERT INTO `function_prof` VALUES ('XYJXSL1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n	<xsl:variable name=\"li\"><![CDATA[\']]></xsl:variable>\r\n	<map key=\"Data\">\r\n		<info key=\'Code\'>1</info>\r\n		<map key=\'Data\'>\r\n			<!-- 其他MailClick信息-->\r\n			<info key=\"Mailclick\"><xsl:value-of select=\"substring-before(substring-after(//INPUT[@value=\'发送\']/@onclick,$li),$li)\"/></info>\r\n		</map>	\r\n	</map>	\r\n	</xsl:template>\r\n</xsl:stylesheet>', '21', '3405', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '21', '3406', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##写邮件\r\n#set($xsl=$funcprof.get(\'XYJXSL1\'))\r\n#set($Url=\"/MailInterface.nsf/mail?OpenForm\")\r\n#set($mailid=$Req_Fields.get(\'MailId\'))\r\n#set($EnterPoint=\"MainPage\")\r\n#set($EnterPoint=$Req_Fields.get(\'EnterPoint\'))\r\n#set($Type=\"\")\r\n##如果Mailid不为空，则是转发邮件，反之，则是新建邮件\r\n#if($mailid.length > 0)\r\n#set($Url=$Url.replaceAll(\'mail\', \'mailzf\'))\r\n#end\r\n##\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$Url\" )\r\n#set( $fun_method = \"POST\" )\r\n#set( $fun_post_para = \"\" )\r\n##触发事件，提交取得返回数据\r\n#set( $fundata = $EVENT.bsEvent.getData($fun_method,$fun_post_para,$fun_url,$xsl,$CONTEXT) )\r\n##\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n				</DataPropList >\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n						<Field Name=\"MSGID\" type=\"string\" base64=\"0\"></Field>\r\n						<Field Name=\"KeyString\" type=\"string\" base64=\"0\"></Field>\r\n						<Field Name=\"MailClick\" type=\"string\" base64=\"0\">$fundata.get(\'Data\').get(\'Mailclick\')</Field>\r\n						<Field Name=\"EnterPoint\" type=\"string\" base64=\"0\">$EnterPoint</Field>\r\n						<Field Name=\"MailId\" type=\"string\" base64=\"0\">$mailid</Field>\r\n					</FieldList>\r\n					<AttachList>\r\n					</AttachList>\r\n				</Record>\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '21', '3407', null);
INSERT INTO `function_prof` VALUES ('REQUEST_TEMPLATE', '<Request>\r\n	<RequestInfos>\r\n		<Info Name=\"RequestCode\">${RequestCode}</Info>\r\n		<Info Name=\"RequestUnitCode\"></Info>\r\n		<Info Name=\"RequestUserLoginName\">${Browser_Username}</Info>\r\n		<Info Name=\"RequestUserPassword\">${Browser_Password}</Info>\r\n		<Info Name=\"RequestAuthString\">${RequestAuthString}</Info>\r\n		<Info Name=\"ClientSysType\">${ClientSysType}</Info>\r\n		<Info Name=\"Session\">$Session</Info>\r\n	</RequestInfos>\r\n	<PassContent>\r\n<![CDATA[\r\n<Data>\r\n	<DataHead>\r\n	</DataHead>\r\n	<FieldList>\r\n		<Field Name=\"MailId\">${MailId}</Field>\r\n	</FieldList>\r\n</Data>]]>\r\n	</PassContent>\r\n</Request>', '21', '3408', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##写邮件返回html\r\n<html>\r\n  <head>   \r\n    <title>写邮件</title>    \r\n  </head>  \r\n  <body>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<form name=\"form\" method=\"post\" action=\"browser\">\r\n<table align=\"center\" width=\"240\" border=\"3\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"EAE8E8\">\r\n  <tr>\r\n    <td align=\"center\" valign=\"middle\">\r\n      <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\r\n        <tr>\r\n          <td width=\"100%\" valign=\"top\" >\r\n            <table width=\"46%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">              \r\n              <tr>\r\n                <td width=\"30%\">发件人：</td>\r\n                <td width=\"70%\" valign=\"middle\">\r\n                  <input type=\"text\" name=\"FjrId\" value=\"$Browser_Username\" disabled=\"true\"/>              \r\n                </td>\r\n                \r\n              </tr>\r\n			  <tr>\r\n                <td width=\"30%\" >收件人：</td>\r\n                <td width=\"70%\"  valign=\"middle\">\r\n                  <input type=\"text\" name=\"SjrId\"/>                 \r\n                </td>\r\n                \r\n              </tr>\r\n              <tr>\r\n                <td width=\"30%\" >主题：\r\n                </td>\r\n                <td width=\"70%\" valign=\"middle\">\r\n                  <input type=\"text\" name=\"ZhuTi\"/>           \r\n                </td>\r\n              </tr>\r\n			  <tr>\r\n                <td width=\"30%\">内容：\r\n                </td>\r\n                <td width=\"70%\" height=\"26\" valign=\"middle\">\r\n                  <TEXTAREA  name=\"Body\" ROWS=\"10\"></TEXTAREA>               \r\n                </td>\r\n              </tr>\r\n              <tr>\r\n                <td width=\"50%\">\r\n                  <div  align=\"center\">\r\n                    <input type=\"submit\" value=\"发送\">\r\n                  </div>\r\n                 </td>\r\n                 <td width=\"50%\">\r\n                  <div align=\"center\">\r\n                    <input name=\"Button\"  type=\"button\" value=\"返回首页\" onclick=\"window.location.href = \'index.html\'\">\r\n                  </div>\r\n                </td>\r\n              </tr>\r\n            </table>\r\n          </td>\r\n        </tr>\r\n      </table>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<INPUT name=\"Session\" type=\"hidden\" value=\"$Session\"/>\r\n<INPUT name=\"Browser_Username\" type=\"hidden\" value=\"$Browser_Username\"/>\r\n<INPUT name=\"Browser_Password\" type=\"hidden\" value=\"$Browser_Password\"/>\r\n<input name=\"ClientSysType\" type=\"hidden\"  value=\"$ClientSysType\"/>\r\n<input name=\"RequestAuthString\" type=\"hidden\"  value=\"$RequestAuthString\"/>\r\n<INPUT name=\"RequestCode\" type=\"hidden\" value=\"SendMail\"/>\r\n<INPUT name=\"MailClick\" type=\"hidden\" value=\"${fields.get(\'MailClick\').value}\"/>\r\n<INPUT name=\"MailId\" type=\"hidden\" value=\"${fields.get(\'MailId\').value}\"/>\r\n</form>\r\n#end\r\n</body>\r\n</html>', '21', '3409', 'ie_wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n \r\n#set($ctl1X = 2)\r\n#set($num = 13)\r\n#set($num2 = 19)\r\n#set($lineHeight = 25)\r\n#set($labelHeight=13)\r\n#set($controlHeight=23)\r\n#set($splitterWidth = 227)\r\n#set($splitterLineHeight = 2)\r\n#set($splitterHeight = 7)\r\n#set($x = 2)\r\n#set($y = 5)\r\n#set($lb1Width=60)\r\n#set($lb2Width=150)\r\n#set($lb3Width=224)\r\n#set($ctl2X=$lb1Width+5)\r\n\r\n#set($sjrHeight=$labelHeight*5)\r\n\r\n<msc>\r\n<Head>\r\n  <Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body  Text=\"写邮件\" BackColor=\"#FFFFFF\" Name=\"MailIndex\">\r\n	 ##发件人\r\n         <Label Name=\"label1\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"发件人: \"/>\r\n         #set($x = $ctl2X)\r\n         <Label Name=\"Fjr\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"Global:UserName\"/>\r\n         \r\n	 ##收件人\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label2\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"收件人:\"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n    #if($fields.get(\'EnterPoint\').value == \'MainPage\')\r\n	<TextBox Name=\"Sjr\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"\"/>\r\n\r\n	 ##主题\r\n         #set($y = $y+$sjrHeight)\r\n         #set($x = $ctl1X)\r\n	  <Label Name=\"label3\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"主题: \"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n	<TextBox Name=\"ZhuTi\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"\"/>\r\n         \r\n   	 ##内容\r\n         #set($y = $y+$sjrHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label4\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"内容:\"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n	<ContextMenuTextBox Name=\"NeiRong\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"\"/>\r\n	#else\r\n	<TextBox Name=\"Sjr\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"Global:MailReceiver\"/>\r\n\r\n	 ##主题\r\n         #set($y = $y+$sjrHeight)\r\n         #set($x = $ctl1X)\r\n	  <Label Name=\"label3\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"主题: \"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n	<TextBox Name=\"ZhuTi\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"Global:MailTitlePrefix+Global:MailDetail.ZhuTi.Text\"/>\r\n         \r\n   	 ##内容\r\n         #set($y = $y+$sjrHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label4\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"内容:\"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n	<ContextMenuTextBox Name=\"NeiRong\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"Global:MailDetail.NeiRong.Text\"/>\r\n	#end\r\n	##上传附件\r\n	#set($y = $y+$sjrHeight)\r\n         #set($x = $ctl1X)\r\n	<Upload Name=\"Upload\"  Location=\"$x,$y\" Width=\"224\"/>\r\n\r\n\r\n	##保存数据到本地变量\r\n	<Vars>\r\n		<Var Name=\"Local:MailClick\" Value=\"${fields.get(\'MailClick\').value}\"/>\r\n		<Var Name=\"Local:CurType\" Value=\"${fields.get(\'CurType\').value}\"/>\r\n		<Var Name=\"Local:MailId\" Value=\"${fields.get(\'MailId\').value}\"/>\r\n	</Vars>\r\n\r\n      <MenuItem Text=\"发送\" Click=\"url:c=SendMail#FileAddress=Local:Upload.FileAddress#To=Local:Sjr.Text#MailClick=Local:MailClick#CurType=Local:CurType#MailId=Local:MailId#SjrId=Local:Sjr.Text#ZhuTi=Local:ZhuTi.Text#Fjr=Global:UserName#Body=Local:NeiRong.Text\"/>\r\n <MenuItem Text=\"通讯录\">\r\n	<MenuItem Text=\"公司通讯录\" Click=\"url:c=AddListCompany\" />\r\n	<MenuItem Text=\"个人通讯录\" Click=\"url:c=AddressList\"/>\r\n	<MenuItem Text=\"关闭\" Click=\"cmd:Back()\"/>\r\n  </MenuItem>\r\n\r\n  </Body>\r\n</msc>\r\n#end\r\n </Response>', '21', '3410', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n \r\n#set($ctl1X = 2)\r\n#set($num = 13)\r\n#set($num2 = 19)\r\n#set($lineHeight = 25)\r\n#set($labelHeight=13)\r\n#set($controlHeight=23)\r\n#set($splitterWidth = 227)\r\n#set($splitterLineHeight = 2)\r\n#set($splitterHeight = 7)\r\n#set($x = 2)\r\n#set($y = 5)\r\n#set($lb1Width=60)\r\n#set($lb2Width=150)\r\n#set($lb3Width=224)\r\n#set($ctl2X=$lb1Width+5)\r\n\r\n#set($sjrHeight=$labelHeight*5)\r\n\r\n<msc>\r\n<Head>\r\n  <Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body  Text=\"写邮件\" BackColor=\"#FFFFFF\" Name=\"MailIndex\">\r\n	 ##发件人\r\n         <Label Name=\"label1\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"发件人: \"/>\r\n         #set($x = $ctl2X)\r\n         <Label Name=\"Fjr\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"Global:UserName\"/>\r\n         \r\n	 ##收件人\r\n         #set($y = $y+$lineHeight)\r\n         #set($x = $ctl1X)\r\n         <Label Name=\"label2\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"收件人:\"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n    #if($fields.get(\'EnterPoint\').value == \'MainPage\')\r\n	<TextBox Name=\"Sjr\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"\"/>\r\n\r\n	 ##主题\r\n         #set($y = $y+$sjrHeight)\r\n         #set($x = $ctl1X)\r\n	  <Label Name=\"label3\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"主题: \"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n	<TextBox Name=\"ZhuTi\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"\"/>\r\n         \r\n   	 ##内容\r\n         #set($y = $y+$sjrHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label4\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"内容:\"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n	<ContextMenuTextBox Name=\"NeiRong\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"\"/>\r\n	#else\r\n	<TextBox Name=\"Sjr\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"Global:MailReceiver\"/>\r\n\r\n	 ##主题\r\n         #set($y = $y+$sjrHeight)\r\n         #set($x = $ctl1X)\r\n	  <Label Name=\"label3\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"主题: \"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n	<TextBox Name=\"ZhuTi\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"Global:MailTitlePrefix+Global:MailDetail.ZhuTi.Text\"/>\r\n         \r\n   	 ##内容\r\n         #set($y = $y+$sjrHeight)\r\n         #set($x = $ctl1X)\r\n        <Label Name=\"label4\"  Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"内容:\"/>\r\n         #set($x = $ctl1X)\r\n         #set($y = $y+$lineHeight)\r\n	<ContextMenuTextBox Name=\"NeiRong\" Location=\"$x,$y\" Multiline=\"true\" Size=\"$lb3Width,$sjrHeight\" Text=\"Global:MailDetail.NeiRong.Text\"/>\r\n	#end\r\n	##上传附件\r\n	#set($y = $y+$sjrHeight)\r\n         #set($x = $ctl1X)\r\n	<Upload Name=\"Upload\"  Location=\"$x,$y\" Width=\"224\"/>\r\n	##保存数据到本地变量\r\n	<Vars>\r\n		<Var Name=\"Local:MailClick\" Value=\"${fields.get(\'MailClick\').value}\"/>\r\n		<Var Name=\"Local:CurType\" Value=\"${fields.get(\'CurType\').value}\"/>\r\n		<Var Name=\"Local:MailId\" Value=\"${fields.get(\'MailId\').value}\"/>\r\n	</Vars>\r\n\r\n      <MenuItem Text=\"发送\" Click=\"url:c=SendMail#FileAddress=Local:Upload.FileAddress#To=Local:Sjr.Text#MailClick=Local:MailClick#CurType=Local:CurType#MailId=Local:MailId#SjrId=Local:Sjr.Text#ZhuTi=Local:ZhuTi.Text#Fjr=Global:UserName#Body=Local:NeiRong.Text\"/>\r\n <MenuItem Text=\"通讯录\">\r\n	<MenuItem Text=\"公司通讯录\" Click=\"url:c=AddListCompany\" />\r\n	<MenuItem Text=\"个人通讯录\" Click=\"url:c=AddressList\"/>\r\n	<MenuItem Text=\"关闭\" Click=\"cmd:Back()\"/>\r\n  </MenuItem>\r\n  </Body>\r\n</msc>\r\n#end\r\n </Response>', '21', '3411', 'Brew');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>	\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\"></Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n	<DocumentForm title=\"收邮件\"/>\r\n	<FormControl ClassName= \"邮件标题\">\r\n		<ObjectValue Name=\"name\">\"label1\"</ObjectValue >\r\n		<ObjectValue Name=\"Text\">$fields.get(\"subject\").value</ObjectValue >\r\n	</FormControl>\r\n	<FormControl ClassName= \"邮件ID\">\r\n		<ObjectValue Name=\"name\">\"label2\"</ObjectValue >\r\n		<ObjectValue Name=\"Text\">$fields.get(\"id\").value</ObjectValue >\r\n	</FormControl>\r\n                <FormControl ClassName=\"CX\">\r\n		<ObjectValue Name=\"name\">comboBox1</ObjectValue>\r\n		<ObjectValue Name=\"items\">\r\n#set($attachs = $record.attachList)			\r\n#foreach($attach in $attachs)\r\n			<SubObject ClassName=\"ListViewItem\">\r\n				<SubObjectValue Name=\"attachurl\">${url_prefix}${attach.filepath}${attach.filename}</SubObjectValue>\r\n#set($keys = $attach.otherforms)\r\n#foreach($key in $keys.keySet())\r\n					<TexValue Name=\"attachtxturl\">${url_prefix}${keys.get($key).filepath}${keys.get($key).filename}</TxtValue>\r\n#end\r\n			</SubObject>		\r\n#end\r\n		</ObjectValue>\r\n	</FormControl>\r\n	</ResponseData>\r\n#end\r\n</Response>', '33', '3412', 'Brew');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##接受本地邮件\r\n##设置邮件代理平台管理\r\n#set($ATTACH_HANDLER_TYPE=\"MAP_MANAGE\")\r\n##触发事件，查询本地邮件\r\n$EVENT.localMailEvent.getData(\'mobiledev\',\'true\',\'1\',$CONTEXT)\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n		<Item Name=\"Next\"></Item>\r\n			<Item Name=\"Back\"></Item>\r\n	</DataPropList >\r\n#foreach($Record in $mails)\r\n#set($msgid=$Record.getMail_id())\r\n	<Record MSGID=\"$msgid\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n			<Field Name=\"id\" type=\"string\" base64=\"0\">$msgid</Field>\r\n			<Field Name=\"subject\" type=\"string\" base64=\"0\">$Record.getSubject()</Field>\r\n		</FieldList>\r\n		<AttachList>\r\n		</AttachList>\r\n	</Record>\r\n#end\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '33', '3413', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'DB_INVOKE', '33', '3414', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>	\r\n	#foreach($record in $records)\r\n	#set($fields = $record.fields)\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\"></Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n	<DocumentForm title=\"收邮件\"/>\r\n	<FormControl ClassName= \"邮件标题\">\r\n		<ObjectValue Name=\"name\">\"label1\"</ObjectValue >\r\n		<ObjectValue Name=\"Text\">$fields.get(\"subject\").value</ObjectValue >\r\n	</FormControl>\r\n	<FormControl ClassName= \"邮件ID\">\r\n		<ObjectValue Name=\"name\">\"label2\"</ObjectValue >\r\n		<ObjectValue Name=\"Text\">$fields.get(\"id\").value</ObjectValue >\r\n	</FormControl>\r\n                <FormControl ClassName=\"CX\">\r\n		<ObjectValue Name=\"name\">comboBox1</ObjectValue>\r\n		<ObjectValue Name=\"items\">\r\n#set($attachs = $record.attachList)			\r\n#foreach($attach in $attachs)\r\n			<SubObject ClassName=\"ListViewItem\">\r\n				<SubObjectValue Name=\"attachurl\">${url_prefix}${attach.filepath}${attach.filename}</SubObjectValue>\r\n#set($keys = $attach.otherforms)\r\n#foreach($key in $keys.keySet())\r\n					<TexValue Name=\"attachtxturl\">${url_prefix}${keys.get($key).filepath}${keys.get($key).filename}</TxtValue>\r\n#end\r\n			</SubObject>		\r\n#end\r\n		</ObjectValue>\r\n	</FormControl>\r\n	</ResponseData>\r\n#end\r\n</Response>', '33', '3415', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '37', '3558', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##登录\r\n##取得登录SessionID\r\n#set($xsl=$funcprof.get(\"XSL1\"))\r\n#set( $login_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}/names.nsf?Login\" )\r\n#set( $login_method = \"POST\" )\r\n#set( $login_post_para = \"Username=RequestUserLoginName,Password=RequestUserPassword\" )\r\n#set( $logindata = $EVENT.bsEvent.getSession($login_method,$login_post_para,$login_url,$xsl,$CONTEXT) )\r\n##\r\n##取得个人邮件配置、代办、在办、邮件数量等相关\r\n#set($xsl=$funcprof.get(\"XSL2\"))\r\n#set( $mailinfo_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}/MailInterface.nsf/(ShowMailInfo)?openagent&${RequestUserLoginName}\" )\r\n#set( $mailinfo = $EVENT.bsEvent.getData(\"GET\",$post_para,$mailinfo_url,$xsl,$CONTEXT) )\r\n#set($tempsomel=$EVENT.bsEvent.addUserData(\"MailInfo\",$mailinfo,$CONTEXT))\r\n##\r\n##取得公文的流转基本意见\r\n#set($xsl=$funcprof.get(\"XSL3\"))\r\n#set( $comment_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}/MailInterface.nsf/ShowcyyjInfo?openagent&${RequestUserLoginName}\" )\r\n#set( $comment =  $EVENT.bsEvent.getData(\"GET\",$post_para,$comment_url,$xsl,$CONTEXT) )	\r\n#set($tempsomel=$EVENT.bsEvent.addUserData(\"Comment\",$comment ,$CONTEXT))\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n		<Item Name=\"Path\">c:\\files</Item>\r\n	</DataPropList >\r\n	<Record MSGID=\"\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n#set($maildata=$mailinfo)\r\n##遍历输出个人信息\r\n#foreach($key in $maildata.keySet())\r\n			<Field Name=\"$key\" type=\"string\" >$maildata.get($key)</Field>\r\n#end\r\n			<Field Name=\"STRYIJIAN\" type=\"string\" >$comment.get(\'STRYIJIAN\').replaceAll(\'#\',\'!_!\')</Field>\r\n#foreach($key in $logindata.keySet())\r\n			<Field Name=\"$key\" type=\"string\" >$logindata.get($key)</Field>\r\n#end	\r\n		</FieldList>			\r\n	</Record>\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '37', '3559', null);
INSERT INTO `function_prof` VALUES ('INDEX', '<html>\r\n  <head>   \r\n    <title>用户登录</title>    \r\n  </head>  \r\n  <body>\r\n <form name=\"loginForm\" method=\"post\" action=\"browser\">\r\n<table align=\"center\" width=\"240\" border=\"3\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"EAE8E8\">\r\n  <tr>\r\n    <td align=\"center\" valign=\"middle\">\r\n      <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\r\n        <tr>\r\n          <td width=\"100%\" valign=\"top\" >\r\n            <table width=\"46%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n              \r\n              <tr>\r\n                <td width=\"30%\" height=\"32\">用户名：</td>\r\n                <td width=\"70%\" height=\"32\" valign=\"middle\">\r\n                  <input type=\"text\" name=\"Browser_Username\" class=\"textField\"/> \r\n                  <input type=\"hidden\" name=\"RequestCode\" value=\"Login\"/>                  \r\n                </td>\r\n                \r\n              </tr>\r\n              <tr>\r\n                <td width=\"30%\" height=\"26\">密&nbsp;&nbsp;&nbsp;&nbsp;码：\r\n                </td>\r\n                <td width=\"70%\" height=\"26\" valign=\"middle\">\r\n                  <input type=\"password\" name=\"Browser_Password\" class=\"textField\" onkeydown=\"if(event.keyCode==13){document.loginForm.submit();}\"/>          \r\n\r\n \r\n                </td>\r\n              </tr>\r\n              <tr>\r\n                <td height=\"45\" width=\"50%\">\r\n                  <div  align=\"center\">\r\n                    <input type=\"submit\" value=\"登录\" class=\"bt1\">\r\n                  </div>\r\n                 </td>\r\n                 <td height=\"45\" width=\"50%\">\r\n                  <div align=\"center\">\r\n                    <input name=\"Button\"  type=\"button\" value=\"返回首页\" onclick=\"window.location.href = \'index.html\'\">\r\n                  </div>\r\n                </td>\r\n              </tr>\r\n            </table>\r\n          </td>\r\n        </tr>\r\n      </table>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<input type=\"hidden\" name=\"ClientSysType\" value=\"ie_wm\"/>\r\n<input name=\"RequestAuthString\" type=\"hidden\"  value=\"0000\"/>\r\n</form>\r\n  </body>\r\n</html>', '37', '3560', null);
INSERT INTO `function_prof` VALUES ('XSL3', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n	<!-- 是否存在意见信息的标示节点-->\r\n	<xsl:variable name=\"flag\" select=\"count(//STRYIJIAN)\"/>\r\n		<xsl:if test=\"$flag &gt; 0\">\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n			<!-- 取得意见信息-->\r\n			<info key=\'STRYIJIAN\'><xsl:value-of select=\"//STRYIJIAN/text()\"/></info>\r\n		</map>\r\n	</xsl:if>		\r\n	<xsl:if test=\"not($flag &gt; 0)\">\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n			<info key=\'Reason\'>取得意见信息失败，请检查用户名！</info>\r\n		</map>\r\n	</xsl:if>\r\n	</xsl:template>	\r\n</xsl:stylesheet>', '37', '3561', null);
INSERT INTO `function_prof` VALUES ('REQUEST_TEMPLATE', '<Request>\r\n	<RequestInfos>\r\n		<Info Name=\"RequestCode\">${RequestCode}</Info>\r\n		<Info Name=\"RequestUnitCode\"></Info>\r\n		<Info Name=\"RequestUserLoginName\">${Browser_Username}</Info>\r\n		<Info Name=\"RequestUserPassword\">${Browser_Password}</Info>\r\n		<Info Name=\"RequestAuthString\">${RequestAuthString}</Info>\r\n		<Info Name=\"ClientSysType\">${ClientSysType}</Info>\r\n		<Info Name=\"Session\"></Info>\r\n	</RequestInfos>\r\n	<PassContent>\r\n<![CDATA[\r\n<Data>\r\n	<DataHead>\r\n	</DataHead>\r\n	<FieldList>\r\n		<Field Name=\"Username\">${Browser_Username}</Field>\r\n		<Field Name=\"Password\">${Browser_Password}</Field>\r\n	</FieldList>\r\n</Data>]]>\r\n	</PassContent>\r\n</Request>', '37', '3562', null);
INSERT INTO `function_prof` VALUES ('XSL2', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n	<!-- 取得邮件信息的标示节点-->\r\n	<xsl:variable name=\"flag\" select=\"count(//MAILINFO/*)\"/>\r\n		<xsl:if test=\"$flag &gt; 0\">\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n			<!-- 调用匹配模式-->\r\n			<xsl:apply-templates select=\"HTML\"/>\r\n		</map>\r\n	</xsl:if>		\r\n	<xsl:if test=\"not($flag &gt; 0)\">	\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n			<info key=\'Reason\'>取得邮件信息失败，请检查用户名！</info>\r\n		</map>\r\n	</xsl:if>\r\n	</xsl:template>\r\n	<!-- 模式HTML-->	\r\n	<xsl:template match=\"HTML\">\r\n		<xsl:variable name=\"li\"><![CDATA[<info key=\"]]></xsl:variable>\r\n		<xsl:variable name=\"lo\"><![CDATA[\">]]></xsl:variable>\r\n		<xsl:variable name=\"lr\"><![CDATA[</info>]]></xsl:variable>		\r\n		<xsl:for-each select=\"//MAILINFO/*\">\r\n			<xsl:value-of select=\"$li\" disable-output-escaping=\"yes\"/>\r\n			<xsl:value-of select=\"name()\"/> \r\n			<xsl:value-of select=\"$lo\" disable-output-escaping=\"yes\" />\r\n			<xsl:value-of select=\".\"/>\r\n			<xsl:value-of select=\"$lr\" disable-output-escaping=\"yes\"/>			\r\n		</xsl:for-each>	\r\n	</xsl:template>	\r\n</xsl:stylesheet>', '37', '3563', null);
INSERT INTO `function_prof` VALUES ('XSL1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n<!-- 登录是否成功的标志-->\r\n<xsl:variable name=\"flag\" select=\"count(//FRAME[@id=\'topFrame\' or @id=\'belowFrame\'])\"/>\r\n<xsl:variable name=\"yes\">YES</xsl:variable>\r\n<xsl:variable name=\"no\">NO</xsl:variable>\r\n	<!-- 如果包括此节点，返回1-->\r\n	<xsl:if test=\"$flag &gt; 0\">\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>			\r\n		</map>\r\n	</xsl:if>	\r\n	<!-- 如果不包括此节点，返回0-->	\r\n	<xsl:if test=\"not($flag &gt; 0)\">\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>0</info>\r\n			<info key=\'Reason\'>登录失败，请检查应用系统配置的用户名与密码是否正确！</info>\r\n		</map>\r\n	</xsl:if>\r\n</xsl:template>\r\n</xsl:stylesheet>', '37', '3564', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##登录返回html\r\n<html>\r\n<head>\r\n<title>上海电信OA主页面</title>\r\n    <link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n    <script type= \"text/javascript\"> \r\nfunction  sub_form(f,flag,code){ 	\r\n    document.forms[0].CurType.value=flag;\r\n    document.forms[0].RequestCode.value=code;\r\n    f.submit(); \r\n}\r\nfunction  sub_fun(f,code){	\r\n    document.forms[0].RequestCode.value=code;\r\n    f.submit(); \r\n}\r\nfunction  sub_back(f,code,index){	\r\n    document.forms[0].RequestCode.value=code;\r\n	document.forms[0].ProfName.value=index;\r\n    f.submit(); \r\n}\r\n</script>\r\n</head>\r\n<body bgcolor=\"ffffff\" leftmargin=\"0\" topmargin=\"20\">\r\n \r\n<form name=\"form\" action=\"browser\" method=\"post\">\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n\r\n<table align=\"center\" width=\"240\" height=\"300\" border=\"3\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"EAE8E8\">\r\n	<tr>\r\n		<td width=\"33%\"><Strong><font size=\"3\" color=\"blue\">\r\n		<a href=\"javascript:sub_form(document.forms[0],\'1\',\'TaskBoxList\');\">代办箱</a>\r\n		</font><br><font size=\"2\" color=\"red\">(${fields.get(\"DBTASKNUM\").value}待办)</font></td>\r\n		<td width=\"33%\"><Strong><font size=\"3\" color=\"blue\">\r\n		<a href=\"javascript:sub_form(document.forms[0],\'0\',\'TaskBoxList\');\">在办箱</a>\r\n		</font></Strong><br><font size=\"2\" color=\"red\">(${fields.get(\"ZBTASKNUM\").value}在办)</font></td >\r\n		<td width=\"33%\"><Strong><font size=\"3\" color=\"blue\">公告</td >\r\n\r\n	</tr>\r\n	<tr>\r\n		<td><Strong><font size=\"3\" color=\"blue\">收邮件</font></Strong><br><font size=\"2\" color=\"red\">(${fields.get(\"MAILNUM\").value}新邮件)</font></td>\r\n		<td><Strong><font size=\"3\" color=\"blue\">\r\n		<a href=\"javascript:sub_fun(document.forms[0],\'MailIndex\');\">写邮件</a>\r\n		</font></Strong></td >\r\n		<td><Strong><font size=\"3\" color=\"blue\">公司通信录</font></Strong></td >\r\n\r\n	</tr>\r\n	<tr>\r\n		<td><Strong><font size=\"3\" color=\"blue\">会议通知</font></Strong></td>\r\n		<td><Strong><font size=\"3\" color=\"blue\"><a href=\"javascript:sub_back(document.forms[0],\'Login\',\'INDEX\');\">返回</a></font></Strong></td >\r\n		<td><Strong><font size=\"3\" color=\"blue\">会议室预定</font></Strong></td >\r\n\r\n	</tr>\r\n</table>\r\n<INPUT name=\"Session\" type=\"hidden\" value=\"$Session\"/>\r\n<INPUT name=\"Browser_Username\" type=\"hidden\" value=\"$Browser_Username\"/>\r\n<INPUT name=\"Browser_Password\" type=\"hidden\" value=\"$Browser_Password\"/>\r\n<input name=\"ClientSysType\" type=\"hidden\"  value=\"$ClientSysType\"/>\r\n<input name=\"RequestAuthString\" type=\"hidden\"  value=\"$RequestAuthString\"/>\r\n<INPUT name=\"Cur\" type=\"hidden\" value=\"\"/>\r\n<INPUT name=\"RequestCode\" type=\"hidden\" value=\"\"/>\r\n<INPUT name=\"CurType\" type=\"hidden\" value=\"\"/>\r\n<INPUT name=\"MailId\" type=\"hidden\" value=\"\"/>\r\n<input name=\"ProfName\" type=\"hidden\"  value=\"\"/>\r\n#end\r\n</form>\r\n</body>\r\n</html>', '37', '3565', 'ie_wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n #foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<Head>\r\n         <Info Name=\"Code\">1</Info>\r\n         <Info Name=\"Reason\"></Info>\r\n        <Info Name=\"Session\">$Session</Info>\r\n         <Info Name=\"Comment\">$fields.get(\"STRYIJIAN\").value</Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n  <Body Text=\"Global:UserName\" Name=\"MainForm\" Size=\"$width,$height\">\r\n<Vars>\r\n    <Var Name=\"Local:UserName\" Value=\"Gaoxin\" />\r\n</Vars>\r\n<Actions>\r\n    <Action Name=\"actInsert\" Code=\"cmd:SetValue(Local:tbUser.Text,Global:UserName);sql:Insert into User (UserName,Pwd) values (\'{0}\',\'{1}\')#Global:UserName,Global:PASSWORD\" />\r\n<Action Name=\"actUpdate\" Code=\"cmd:SetValue(Local:tbUser.Text,Local:UserName);sql:Update User set UserName=\'{0}\' where UserName=\'{1}\'#Local:UserName,Global:UserName\" />\r\n<Action Name=\"actDel\" Code=\"cmd:SetValue(Local:tbUser.Text,);sql:Delete from User where UserName=\'{0}\'#Local:UserName\" />\r\n</Actions>\r\n     <ImageList Name=\"imagelist1\" ImageSize=\"32,32\">\r\n         <Image Source=\"contacts.bmp\"/>\r\n         <Image Source=\"calendar.bmp\"/>\r\n     </ImageList>   \r\n\r\n    <MouseGesturePanel Dock=\"Fill\"  eventR2L=\"cmd:Back()\"  >  \r\n#set($width=$wmul*240)\r\n \r\n    <TabControl ToolbarSize=\"$width,46\" BackColor=\"128,128,128\" BackgroundImage=\"Bkg_TabMenu.png\"  DockType=\"Bottom\"  Dock=\"Fill\"   ItemsAlignment=\"BottomRight\">\r\n\r\n      <TabPage BackColor=\"#808080\" ImageDefault=\"server:ftp://Administrator:IdealRD@132.159.156.163/Home_off.png\" ImagePressed=\"Home_on.png\">\r\n#set($x=$wmul*36)\r\n#set($y=$hmul*5)\r\n        <ImageButton ImageDefault=\"customer.bmp\" Location=\"$x,$y\"  Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"打电话\" Click=\"cmd:Telephone(13816383550)\" />\r\n#set($x=$wmul*104)\r\n#set($y=$hmul*5)\r\n        <ImageButton ImageDefault=\"products.bmp\" Location=\"$x,$y\" Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"发短信\"   Click=\"cmd:Sms(13816383550)\"/>    \r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Customer_off.png\"  BackColor=\"128,128,128\"  ImagePressed=\"Customer_on.png\">\r\n#set($x=$wmul*36)\r\n#set($y=$hmul*5)\r\n        <ImageButton ImageDefault=\"calendar.bmp\" Location=\"$x,$y\"  Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"IE\" Click=\"cmd:RunEXE(iexplore.exe,g.cn)\"  />\r\n#set($x=$wmul*104)\r\n#set($y=$hmul*5)\r\n        <ImageButton ImageDefault=\"contacts.bmp\" Location=\"$x,$y\"  Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\"  TextDefault=\"在办箱\" Click=\"url:c=TaskBoxList#Cur=#CurType=0#target=_blank\"  />\r\n#set($x=$wmul*172)\r\n#set($y=$hmul*5)\r\n        <ImageButton ImageDefault=\"notes.bmp\" Location=\"$x,$y\"   Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"待办箱\"  Click=\"url:c=TaskBoxList#Cur=#CurType=1#target=_blank\" />\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*60)\r\n        <ImageButton ImageDefault=\"tasts.bmp\" Location=\"$x,$y\"   Size=\"48,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"公告列表\"  Click=\"url:c=BulletinList#Cur=#target=_blank\"/>\r\n#set($x=$wmul*98)\r\n#set($y=$hmul*60)\r\n        <ImageButton ImageDefault=\"mail.bmp\" Location=\"$x,$y\"  Size=\"48,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"邮件列表\" Click=\"url:c=MailList#target=_blank\"/>\r\n#set($x=$wmul*160)\r\n#set($y=$hmul*60)\r\n\r\n        <ImageButton ImageDefault=\"contacts.bmp\" Location=\"$x,$y\"  Size=\"60,48\" ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"公司通讯录\" Click=\"url:c=AddListCompany#Cur=#From=txl#target=_blank\"/>\r\n#set($x=$wmul*36)\r\n#set($y=$hmul*115)\r\n        <ImageButton ImageDefault=\"mail.bmp\" Location=\"$x,$y\"  Size=\"36,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"写邮件\" Click=\"url:c=MailIndex#MailId=#EnterPoint=MainPage#target=_blank\"/>\r\n#set($x=$wmul*92)\r\n#set($y=$hmul*115)\r\n        <ImageButton ImageDefault=\"mail.bmp\" Location=\"$x,$y\"  Size=\"60,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"会议室查询\" Click=\"url:c=MeetingRoomDateQuery#target=_blank\"/>\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Calendar_off.png\" BackColor=\"128,128,128\"   ImagePressed=\"Calendar_on.png\">\r\n#set($x=$wmul*36)\r\n#set($y=$hmul*5)\r\n        <ImageButton ImageDefault=\"fileexplorer.bmp\" Location=\"$x,$y\"   Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"插入\" Click=\"act:actInsert\"/>\r\n#set($x=$wmul*104)\r\n#set($y=$hmul*5)\r\n        <ImageButton ImageDefault=\"contacts.bmp\" Location=\"$x,$y\"   Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"更新\"  Click=\"act:actUpdate\"/>\r\n#set($x=$wmul*172)\r\n#set($y=$hmul*5)\r\n        <ImageButton ImageDefault=\"notes.bmp\" Location=\"$x,$y\"     Size=\"36,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"删除\"  Click=\"act:actDel\" />\r\n#set($x=$wmul*36)\r\n#set($y=$hmul*60)\r\n        <TextBox Name=\"tbUser\" Location=\"$x,$y\"  Size=\"100,24\" Text=\"sql:Select UserName from User where Pwd=\'{0}\'#Global:PASSWORD\"/>\r\n#set($x=$wmul*36)\r\n#set($y=$hmul*90)\r\n       <DateTimePicker Value=\"2001-05-09\" Location=\"$x,$y\" Size=\"100,24\"/>\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Order_off.png\" BackColor=\"128,128,128\"  ImagePressed=\"Order_on.png\">\r\n         <AdvancedList Name=\"list1\" Location=\"0,0\" ShowHeader=\"True\" Size=\"240,110\" CellClick=\"cmd:ShowMessageBox(333333)\">\r\n	<HeaderRow   TemplateIndex=\"2\"   StringData=\"co1,col2\"/>\r\n	<AdvancedRow  SelectedTemplateIndex=\"1\"  StringData=\"11,222\" Click=\"cmd:ShowMessageBox(111111)\"/>\r\n	<AdvancedRow  SelectedTemplateIndex=\"1\"  StringData=\"gg,333\" Click=\"cmd:ShowMessageBox(222222)\"/>\r\n	<AdvancedRow  SelectedTemplateIndex=\"1\"  StringData=\"coco,444\"/>\r\n \r\n	<RowTemplate Height=\"24\">\r\n	<ImageCell    ImageList=\"Local:imagelist1\" ImageIndex=\"0\"  Bounds=\"0,0,-1,24\"/>\r\n	<TextCell Bounds=\"48,0,-1,16\"/>\r\n	</RowTemplate>\r\n	<RowTemplate Height=\"32\" BackColor=\"#FDAADD\">\r\n	<TextCell Bounds=\"0,0,-1,16\"/>\r\n	<TextCell Bounds=\"0,16,-1,16\"/>\r\n	</RowTemplate>\r\n	<RowTemplate Height=\"24\" BackColor=\"#ABCDEF\">\r\n	<TextCell Bounds=\"0,0,-1,16\"/>\r\n	<TextCell Bounds=\"48,0,-1,16\"/>\r\n	</RowTemplate>\r\n         </AdvancedList>\r\n \r\n#set($y=$hmul*112)\r\n         <TextBox Name=\"tb1\"  Location=\"0,$y\" Size=\"100,24\"/>\r\n#set($x=$wmul*110)\r\n#set($y=$hmul*112)\r\n        <Button Name=\"button1\" Text=\"获取Samrt值\" Click=\"cmd:SetValue(Local:tb1.Text,Local:grid1.SelectedValue)\" Location=\"$x,$y\"  Size=\"80,22\"/> \r\n        <SmartGrid Name=\"grid1\"   Location=\"0,0\" Size=\"240,100\">\r\n	<SmartRow Height=\"16\" StringData=\"eric,222\" CheckValue=\"eric:222\" Click=\"cmd:SetValue(Local:tb1.Text,222)\"/>\r\n	<SmartRow Height=\"16\" StringData=\"gg,4444\" CheckValue=\"gg:4444\" Click=\"cmd:SetValue(Local:tb1.Text,4444)\"/>\r\n	<SmartRow Height=\"16\" StringData=\"coco,555\" CheckValue=\"coco:555\" Click=\"cmd:SetValue(Local:tb1.Text,555)\"/>\r\n	<Column Name=\"col1\" Width=\"110\"   HeaderText=\"col1\"/>\r\n	<Column Name=\"col2\" Width=\"125\"   HeaderText=\"col2\"/>\r\n         </SmartGrid>\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Home_off.png\" BackColor=\"#808080\" ImagePressed=\"Home_on.png\">\r\n#set($x=$wmul*36)\r\n#set($y=$hmul*5)\r\n        <ImageButton ImageDefault=\"customer.bmp\" Location=\"$x,$y\"   Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"设置\"  Click=\"cmd:ShowSetting()\" />\r\n#set($x=$wmul*98)\r\n#set($y=$hmul*5)\r\n        <ImageButton ImageDefault=\"products.bmp\" Location=\"$x,$y\"  Size=\"48,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"下载管理\"    Click=\"cmd:ShowDownloadManager()\"/>    \r\n      </TabPage>\r\n\r\n    </TabControl >\r\n\r\n    </MouseGesturePanel>\r\n    <MenuItem Text=\"退出\" Click=\"cmd:Exit()\"></MenuItem>\r\n    <MenuItem Text=\"菜单\">\r\n	<MenuItem Text=\"Say Hello\" Click=\"cmd:ShowMessageBox(hello world)\"/>\r\n    </MenuItem>\r\n  </Body>\r\n</msc>\r\n#end\r\n</Response>', '37', '3566', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n #foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<Head>\r\n         <Info Name=\"Code\">1</Info>\r\n         <Info Name=\"Reason\"></Info>\r\n        <Info Name=\"Session\">$Session</Info>\r\n         <Info Name=\"Comment\">$fields.get(\"STRYIJIAN\").value</Info>\r\n</Head>\r\n  <Body Text=\"Global:UserName\" Name=\"MainForm\" >\r\n<Vars>\r\n    <Var Name=\"Local:UserName\" Value=\"Gaoxin\"/>\r\n</Vars>\r\n<Actions>\r\n    <Action Name=\"actInsert\" Code=\"cmd:SetValue(Local:tbUser.Text,Global:UserName);sql:Insert into User (UserName,Pwd) values (\'{0}\',\'{1}\')#Global:UserName,Global:PASSWORD\" />\r\n<Action Name=\"actUpdate\" Code=\"cmd:SetValue(Local:tbUser.Text,Local:UserName);sql:Update User set UserName=\'{0}\' where UserName=\'{1}\'#Local:UserName,Global:UserName\" />\r\n<Action Name=\"actDel\" Code=\"cmd:SetValue(Local:tbUser.Text,);sql:Delete from User where UserName=\'{0}\'#Local:UserName\" />\r\n</Actions>\r\n     <ImageList Name=\"imagelist1\" ImageSize=\"32,32\">\r\n         <Image Source=\"contacts.bmp\"/>\r\n         <Image Source=\"calendar.bmp\"/>\r\n     </ImageList>   \r\n    <MouseGesturePanel Dock=\"Fill\"  eventR2L=\"cmd:Back()\"  >  \r\n\r\n    <TabControl ToolbarSize=\"240,46\" BackColor=\"128,128,128\" BackgroundImage=\"Bkg_TabMenu.png\"  DockType=\"Bottom\"  Dock=\"Fill\"   ItemsAlignment=\"BottomRight\">\r\n\r\n      <TabPage BackColor=\"128,128,128\" ImageDefault=\"Home_off.png\" ImagePressed=\"Home_on.png\">\r\n\r\n        <ImageButton ImageDefault=\"customer.bmp\" Location=\"36,5\"  Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"打电话\" Click=\"cmd:Telephone(13816383550)\" />\r\n        <ImageButton ImageDefault=\"products.bmp\" Location=\"104,5\" Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"发短信\"   Click=\"cmd:Sms(13816383550)\"/>    \r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Customer_off.png\"  BackColor=\"128,128,128\"  ImagePressed=\"Customer_on.png\">\r\n        <ImageButton ImageDefault=\"calendar.bmp\" Location=\"36,5\" Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"IE\" Click=\"cmd:RunEXE(iexplore.exe,g.cn)\"  />\r\n        <ImageButton ImageDefault=\"contacts.bmp\" Location=\"104,5\" Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\"  TextDefault=\"在办箱\" Click=\"url:c=TaskBoxList#Cur=#CurType=0#target=_blank\"  />\r\n        <ImageButton ImageDefault=\"notes.bmp\" Location=\"172,5\"  Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"待办箱\"  Click=\"url:c=TaskBoxList#Cur=#CurType=1#target=_blank\" />\r\n        <ImageButton ImageDefault=\"tasts.bmp\" Location=\"30,60\"  Size=\"48,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"公告列表\"  Click=\"url:c=BulletinList#Cur=#target=_blank\"/>\r\n        <ImageButton ImageDefault=\"mail.bmp\" Location=\"98,60\" Size=\"48,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"邮件列表\" Click=\"url:c=MailList#target=_blank\"/>\r\n        <ImageButton ImageDefault=\"contacts.bmp\" Location=\"160,60\" Size=\"60,48\" ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"公司通讯录\" Click=\"url:c=AddListCompany#Cur=#From=txl#target=_blank\"/>\r\n        <ImageButton ImageDefault=\"mail.bmp\" Location=\"36,115\" Size=\"36,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"写邮件\" Click=\"url:c=MailIndex#MailId=#EnterPoint=MainPage#target=_blank\"/>\r\n        <ImageButton ImageDefault=\"mail.bmp\" Location=\"92,115\" Size=\"60,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"会议室查询\" Click=\"url:c=MeetingRoomDateQuery#target=_blank\"/>\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Calendar_off.png\" BackColor=\"128,128,128\"   ImagePressed=\"Calendar_on.png\">\r\n        <ImageButton ImageDefault=\"fileexplorer.bmp\" Location=\"36,5\"  Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"插入\" Click=\"act:actInsert\"/>\r\n        <ImageButton ImageDefault=\"contacts.bmp\" Location=\"104,5\"   Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"更新\"  Click=\"act:actUpdate\"/>\r\n        <ImageButton ImageDefault=\"notes.bmp\" Location=\"172,5\"    Size=\"36,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"删除\"  Click=\"act:actDel\" />\r\n        <TextBox Name=\"tbUser\" Location=\"36,60\"  Size=\"100,24\" Text=\"sql:Select UserName from User where Pwd=\'{0}\'#Global:PASSWORD\"/>\r\n       <DateTimePicker Value=\"2001-05-09\" Location=\"36,90\"  Size=\"100,24\"/>\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Order_off.png\" BackColor=\"128,128,128\"  ImagePressed=\"Order_on.png\">\r\n         <AdvancedList Name=\"list1\" Location=\"0,0\" ShowHeader=\"True\" Size=\"240,110\" CellClick=\"cmd:ShowMessageBox(333333)\">\r\n	<HeaderRow   TemplateIndex=\"2\"   StringData=\"co1,col2\"/>\r\n	<AdvancedRow  SelectedTemplateIndex=\"1\"  StringData=\"11,222\" Click=\"cmd:ShowMessageBox(111111)\"/>\r\n	<AdvancedRow  SelectedTemplateIndex=\"1\"  StringData=\"gg,333\" Click=\"cmd:ShowMessageBox(222222)\"/>\r\n	<AdvancedRow  SelectedTemplateIndex=\"1\"  StringData=\"coco,444\"/>\r\n \r\n	<RowTemplate Height=\"24\">\r\n	<ImageCell    ImageList=\"Local:imagelist1\" ImageIndex=\"0\"  Bounds=\"0,0,-1,24\"/>\r\n	<TextCell Bounds=\"48,0,-1,16\"/>\r\n	</RowTemplate>\r\n	<RowTemplate Height=\"32\" BackColor=\"#FDAADD\">\r\n	<TextCell Bounds=\"0,0,-1,16\"/>\r\n	<TextCell Bounds=\"0,16,-1,16\"/>\r\n	</RowTemplate>\r\n	<RowTemplate Height=\"24\" BackColor=\"#ABCDEF\">\r\n	<TextCell Bounds=\"0,0,-1,16\"/>\r\n	<TextCell Bounds=\"48,0,-1,16\"/>\r\n	</RowTemplate>\r\n         </AdvancedList>\r\n         <TextBox Name=\"tb1\"  Location=\"0,112\" Size=\"100,24\"/>\r\n        <Button Name=\"button1\" Text=\"获取Samrt值\" Click=\"cmd:SetValue(Local:tb1.Text,Local:grid1.SelectedValue)\" Location=\"110,112\" Size=\"80,22\"/> \r\n        <SmartGrid Name=\"grid1\"   Location=\"0,0\" Size=\"240,100\">\r\n	<SmartRow Height=\"16\" StringData=\"eric,222\" CheckValue=\"eric:222\" Click=\"cmd:SetValue(Local:tb1.Text,222)\"/>\r\n	<SmartRow Height=\"16\" StringData=\"gg,4444\" CheckValue=\"gg:4444\" Click=\"cmd:SetValue(Local:tb1.Text,4444)\"/>\r\n	<SmartRow Height=\"16\" StringData=\"coco,555\" CheckValue=\"coco:555\" Click=\"cmd:SetValue(Local:tb1.Text,555)\"/>\r\n	<Column Name=\"col1\" Width=\"110\"   HeaderText=\"col1\"/>\r\n	<Column Name=\"col2\" Width=\"125\"   HeaderText=\"col2\"/>\r\n         </SmartGrid>\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Home_off.png\" BackColor=\"#808080\" ImagePressed=\"Home_on.png\">\r\n        <ImageButton ImageDefault=\"customer.bmp\" Location=\"36,5\"  Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"设置\"  Click=\"cmd:ShowSetting()\" />\r\n        <ImageButton ImageDefault=\"products.bmp\" Location=\"98,5\" Size=\"48,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"下载管理\"    Click=\"cmd:ShowDownloadManager()\"/>    \r\n      </TabPage>\r\n\r\n    </TabControl >\r\n\r\n    </MouseGesturePanel>\r\n    <MenuItem Text=\"退出\" Click=\"cmd:Exit()\"></MenuItem>\r\n    <MenuItem Text=\"菜单\">\r\n	<MenuItem Text=\"Say Hello\" Click=\"cmd:ShowMessageBox(hello world)\"/>\r\n    </MenuItem>\r\n  </Body>\r\n</msc>\r\n#end\r\n</Response>', '37', '3567', 'Brew');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n#set($ctl1X = 2)\r\n#set($num = 13)\r\n#set($num2 = 20)\r\n#set($lineHeight = 25)\r\n#set($labelHeight=20)\r\n#set($controlHeight=23)\r\n#set($x = 2)\r\n#set($y = 5)\r\n#set($lb1Width=70)\r\n#set($lb2Width=150)\r\n#set($ctl2X=$lb1Width+5)\r\n<msc>\r\n<Head>\r\n            <Info Name=\"Code\">1</Info>\r\n            <Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"公司发文详细\" BackColor=\"#FFFFFF\">\r\n	<Label Name=\"label1\" ForeColor=\"#ABCDEF\" Location=\"$x,$y\" Width=\"$lb1Width\"   Text=\"发文类型:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox1\"  Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Type\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label2\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"文头:\"/>\r\n       #set($x = $ctl2X)\r\n       #set($temp_a=${fields.get(\'V_WenTou\').value.length()})\r\n       #set($temp_b=$temp_a/$num)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n       <Label Name=\"textBox2\" Location=\"$x,$y\" Size=\"$lb2Width,$controlHeight\" Text=\"${fields.get(\'V_WenTou\').value}\"/>\r\n       #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label3\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"标题:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox3\"  Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Title\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label4\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"附件名称:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox4\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Attachname\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label5\" Location=\"$x,$y\" Width=\"80\" ForeColor=\"#ABCDEF\" Text=\"拟稿人及部门:\"/>\r\n       #set($y = $y+$lineHeight)\r\n       <Label Name=\"textBox5\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Ng_V_DraftDept\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label6\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"拟稿日期:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox6\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Ngrq\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label7\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"文号:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox7\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Wh\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label8\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"主题词:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox8\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Ztc\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label9\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\"  Text=\"主送单位:\"/>\r\n       #set($x = $ctl2X)\r\n       #set($temp_a=${fields.get(\'V_Zsdw\').value.length()})\r\n       #set($temp_b=$temp_a/$num)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n       <Label Name=\"textBox9\" Location=\"$x,$y\" Width=\"$lb2Width\" Size=\"150,$controlHeight\" Text=\"${fields.get(\'V_Zsdw\').value}\"/>\r\n        #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)  \r\n        <Label Name=\"label10\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"抄报单位:\"/>\r\n       #set($x = $ctl2X)\r\n       #set($temp_a=${fields.get(\'V_Cbdw\').value.length()})\r\n       #set($temp_b=$temp_a/$num)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n       \r\n       <Label Name=\"textBox10\" Location=\"$x,$y\" Width=\"$lb2Width\" Size=\"150,$controlHeight\" Text=\"${fields.get(\'V_Cbdw\').value}\"/>\r\n       #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label11\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"抄送单位:\"/>\r\n       #set($x = $ctl2X)\r\n       #set($temp_a=${fields.get(\'V_Csdw\').value.length()})\r\n       #set($temp_b=$temp_a/$num)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n       <Label Name=\"textBox11\" Location=\"$x,$y\" Width=\"$lb2Width\" Size=\"150,$controlHeight\" Text=\"${fields.get(\'V_Csdw\').value}\"/>\r\n       #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label12\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"公司内部:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox12\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Csdw_Nb\').value}\"/>\r\n        #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label13\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"会签部门:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox13\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Hqdw\').value}\"/>\r\n        #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label14\" Location=\"$x,$y\" Width=\"80\" ForeColor=\"#ABCDEF\" Text=\"发文单位落款:\"/>\r\n      #set($y = $y+$lineHeight)\r\n      #set($temp_a=${fields.get(\'V_LuoKuan\').value.length()})\r\n       #set($temp_b=$temp_a/$num2)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n       <Label Name=\"textBox14\" Location=\"$x,$y\" Size=\"220,$controlHeight\" Text=\"${fields.get(\'V_LuoKuan\').value}\"/>\r\n        #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label15\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"密级:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox15\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Mj\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)   \r\n        <Label Name=\"label16\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"缓急程度:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox16\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Degree\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label166\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"附件:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox18\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Mj\').value}\"/>\r\n \r\n        #set($y = $y+$lineHeight)\r\n        #set($x = $ctl1X)  \r\n       <Attach Name=\"attachs1\" Location=\"$x,$y\" Width=\"220\"  Source=\"\r\n	#foreach($attach in $record.attachs.get(\'attachs\'))\r\n	${attach.get(\"Value\")}|${attach.get(\"URL\")},\r\n                #end\r\n       \"/>\r\n       #set($y = $y+50)\r\n\r\n       <Label Name=\"label17\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"文字核稿:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox17\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Hg\').value}\"/>\r\n        #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n        <Label Name=\"label18\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"审核:\"/>\r\n       #set($x = $ctl2X)\r\n       #set($temp_a=${fields.get(\'Yj_Sh\').value.length()})\r\n       #set($temp_b=$temp_a/$num)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n	<Label Name=\"textBox18\" Location=\"$x,$y\" Size=\"$lb2Width,$controlHeight\" Text=\"${fields.get(\'Yj_Sh\').value}\"/>\r\n       #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)  \r\n        <Label Name=\"label19\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"会签:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox19\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Hq\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  	 \r\n	 <Label Name=\"label20\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"技术核稿:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox20\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Jshg\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n        <Label Name=\"labe21\" Location=\"$x,$y\" Width=\"$lb1Width\"  ForeColor=\"#ABCDEF\" Text=\"阅核:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox21\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Yh\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n        <Label Name=\"label22\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"审签:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox22\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Sq\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  	 \r\n        <Label Name=\"label23\" Location=\"$x,$y\" Width=\"$lb1Width\"  ForeColor=\"#ABCDEF\" Text=\"签发:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox23\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Qf\').value}\"/>\r\n \r\n       #if(${fields.get(\'MyYj\').value.length()}>0)\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n         <Label Name=\"label24\" Location=\"$x,$y\" Width=\"$lb1Width\"  ForeColor=\"#ABCDEF\" Text=\"我的意见:\"/>\r\n        #set($y = $y+$lineHeight)\r\n        #set($temp_a=${fields.get(\'MyYj\').value.length()})\r\n        #set($temp_b=$temp_a/$num)\r\n        #set($temp_b=$temp_b+1)\r\n        #set($controlHeight=($temp_b*$labelHeight))\r\n	<Label Name=\"textBox24\" Location=\"$x,$y\" Size=\"220,$controlHeight\" Text=\"${fields.get(\'MyYj\').value}\"/>\r\n       #set($y = $y+$controlHeight)\r\n        #end\r\n     \r\n       #set($x = $ctl1X)  \r\n       #if(${fields.get(\'CanYjsr\').value}==\"true\")\r\n\r\n        <Label Name=\"label25\" Location=\"$x,$y\" Width=\"$lb1Width\"  ForeColor=\"#ABCDEF\" Text=\"请输入意见:\"/>\r\n        #set($y = $y+$lineHeight)\r\n	<TextBox Location=\"$x,$y\" Size=\"220,100\" Name=\"textBox25\" />\r\n       #set($y = $y+$lineHeight)\r\n       #end\r\n       \r\n       <Attach Location=\"$x,$y\"  Width=\"220\" Name=\"attachs2\" />\r\n      #if(${fields.get(\'Browse\').value.length()}>0)\r\n      <MenuItem Text=\"返回\" Click=\"cmd:Back()\"/>\r\n     #end\r\n      <MenuItem   Text=\"处理结束\" Click=\"url:c=OffDetailOver#Id=${fields.get(\'Id\').value}#Over=${fields.get(\'Over\').value}#V_Clyj_Edit_Temp=Local:textBox25.Text#target=_blank\" />\r\n</Body>\r\n</msc>\r\n#end\r\n</Response>', '14', '3590', 'Brew');
INSERT INTO `function_prof` VALUES ('GSFWXSL1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n		<xsl:variable name=\"li\"><![CDATA[\']]></xsl:variable>\r\n		<!-- 将公司发文的部分内容信息取出-->\r\n		<xsl:variable name=\"AttDB\" select=\"//INPUT[@type=\'hidden\'][@name=\'AttDB\']/@value\"/>\r\n		<xsl:variable name=\"ATTFile\"><![CDATA[/$file/]]></xsl:variable>\r\n		<xsl:variable name=\"docid\" select=\"//INPUT[@type=\'hidden\'][@name=\'docid\']/@value\"/>\r\n		<xsl:variable name=\"ftpip\" select=\"//INPUT[@type=\'hidden\'][@name=\'ftpserverip\']/@value\"/>\r\n		<xsl:variable name=\"ftpport\" select=\"//INPUT[@type=\'hidden\'][@name=\'ftpport\']/@value\"/>\r\n		<xsl:variable name=\"ftpuser\" select=\"//INPUT[@type=\'hidden\'][@name=\'ftpusername\']/@value\"/>\r\n		<xsl:variable name=\"ftpurl\" select=\"//INPUT[@type=\'hidden\'][@name=\'ftpurl\']/@value\"/>\r\n		<xsl:variable name=\"ftppass\" select=\"substring-after(substring-before($ftpurl,\'@\'),concat($ftpuser,\':\'))\"/>\r\n		<xsl:variable name=\"flag\">ftp_ftp</xsl:variable>\r\n		<!-- 浏览正文的逻辑标志位-->\r\n		<xsl:variable name=\"checked\" select=\"//INPUT[@type=\'hidden\'][@name=\'checked\']/@value\"/>\r\n		<map key=\"Data\">\r\n			<info key=\'Code\'>1</info>\r\n			<map key=\'Data\'>\r\n				<!-- 将公司发文的内容进行组装-->\r\n				<info key=\"Id\">\r\n					<xsl:value-of select=\"//FORM/@action\"/>\r\n				</info>\r\n				<info key=\"V_Type\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_typecopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"V_WenTou\">\r\n					<xsl:value-of select=\"//TABLE/TR[4]/TD[3]/TEXTAREA/text()\"/>\r\n				</info>\r\n				<info key=\"Title\">\r\n					<xsl:value-of select=\"//TABLE/TR[5]/TD[3]/FONT/INPUT/@value\"/>\r\n				</info>\r\n				<info key=\"Attachname\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'Attachment\']/@value\"/>\r\n				</info>\r\n				<info key=\"V_Ng_V_DraftDept\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_ng\']/@value\"/>,<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_draftdept\']/@value\"/>\r\n				</info>\r\n				<info key=\"V_Ngrq\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_ngrq\']/@value\"/>\r\n				</info>\r\n				<info key=\"V_Wh\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_wh\']/@value\"/>\r\n				</info>\r\n				<info key=\"V_Ztc\">\r\n					<xsl:value-of select=\"//TABLE/TR[10]/TD[2]/FONT/TEXTAREA/text()\"/>\r\n				</info>\r\n				<info key=\"V_Zsdw\">\r\n					<xsl:value-of select=\"//TABLE/TR[11]/TD[3]/FONT/TEXTAREA/text()\"/>\r\n				</info>\r\n				<info key=\"V_Cbdw\">\r\n					<xsl:value-of select=\"//TABLE/TR[12]/TD[3]/FONT/TEXTAREA/text()\"/>\r\n				</info>\r\n				<info key=\"V_Csdw\">\r\n					<xsl:value-of select=\"//TABLE/TR[13]/TD[3]/FONT/TEXTAREA/text()\"/>\r\n				</info>\r\n				<info key=\"V_Csdw_Nb\">\r\n					<xsl:value-of select=\"//TABLE/TR[14]/TD[3]/FONT/TEXTAREA/text()\"/>\r\n				</info>\r\n				<info key=\"V_Hqdw\">\r\n					<xsl:value-of select=\"//TABLE/TR[15]/TD[3]/FONT/TEXTAREA/text()\"/>\r\n				</info>\r\n				<info key=\"V_LuoKuan\">\r\n					<xsl:value-of select=\"//TABLE/TR[16]/TD[3]/FONT/TEXTAREA/text()\"/>\r\n				</info>\r\n				<info key=\"V_Mj\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'v_mjcopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"Degree\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'degreecopy\']/@value\"/>\r\n				</info>\r\n				<info key=\"Yj_Hg\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'yj_yg\']/@value\"/>\r\n				</info>\r\n				<info key=\"Yj_Sh\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'yj_sh\']/@value\"/>\r\n				</info>\r\n				<info key=\"Yj_Hq\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'yj_hq\']/@value\"/>\r\n				</info>\r\n				<info key=\"Yj_Jshg\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'yj_Jshg\']/@value\"/>\r\n				</info>\r\n				<info key=\"Yj_Yh\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'yj_yh\']/@value\"/>\r\n				</info>\r\n				<info key=\"Yj_Sq\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'yj_sq\']/@value\"/>\r\n				</info>\r\n				<info key=\"Yj_Qf\">\r\n					<xsl:value-of select=\"//INPUT[@type=\'hidden\'][@name=\'yj_qf\']/@value\"/>\r\n				</info>\r\n				<info key=\"MyYj\">\r\n					<xsl:value-of select=\"//TEXTAREA[@name=\'v_clyj_edit_temp\']\"/>\r\n				</info>\r\n				<info key=\"Browse\">\r\n					<!-- 通过浏览正文的utf-8编码判断是否存在此按钮-->\r\n					<xsl:if test=\"count(//IMG[contains(@src,\'%E6%B5%8F%E8%A7%88%E6%AD%A3%E6%96%87\')]) > 0\">\r\n						<xsl:if test=\"not($checked = \'1\')\">\r\n							<xsl:value-of select=\"concat($flag,$ftpip,$flag,$ftpuser,$flag,$ftpport,$flag,$ftppass,$flag,$docid,\'(modify).doc\')\"/>\r\n						</xsl:if>\r\n						<xsl:if test=\"$checked = \'1\'\">\r\n							<xsl:value-of select=\"concat($flag,$ftpip,$flag,$ftpuser,$flag,$ftpport,$flag,$ftppass,$flag,$docid,\'.doc\')\"/>\r\n						</xsl:if>\r\n					</xsl:if>\r\n				</info>\r\n				<info key=\"Over\">\r\n					<!-- 通过处理结束的utf-8编码判断是否存在此按钮-->\r\n					<xsl:if test=\"count(//IMG[contains(@src,\'%E5%A4%84%E7%90%86%E7%BB%93%E6%9D%9F\')]) > 0\">\r\n						<xsl:value-of select=\"concat(\'__Click=\',substring-before(substring-after(//INPUT[@type=\'button\' and @name=\'Signcljs\']/@onclick,$li),$li))\"/>\r\n						<xsl:apply-templates select=\"//INPUT[@type=\'hidden\'] | //INPUT[@name=\'docid\']\"/>\r\n					</xsl:if>\r\n				</info>\r\n				<info key=\"CanYjsr\">\r\n					<!-- 通过意见输入的utf-8编码判断是否存在此按钮-->\r\n					<xsl:if test=\"count(//IMG[contains(@src,\'%E6%84%8F%E8%A7%81%E8%BE%93%E5%85%A5\')]) > 0\">\r\n						<xsl:text>true</xsl:text>\r\n					</xsl:if>\r\n					<xsl:if test=\"count(//IMG[contains(@src,\'%E6%84%8F%E8%A7%81%E8%BE%93%E5%85%A5\')]) = 0\">\r\n						<xsl:text>false</xsl:text>\r\n					</xsl:if>\r\n				</info>\r\n			</map>\r\n			<xsl:if test=\"not(contains(//TABLE/TR[2]/TD/SELECT/OPTION[1]/text(),\'没有附件\'))\">\r\n				<map key=\'Attc\'>\r\n					<!-- 调用匹配模版，取得附件信息-->\r\n					<xsl:apply-templates select=\"//TABLE/TR[2]/TD/SELECT\"/>\r\n				</map>\r\n			</xsl:if>\r\n		</map>\r\n	</xsl:template>\r\n	<!-- 模版，取得附件信息-->\r\n	<xsl:template match=\"//TABLE/TR[2]/TD/SELECT\">\r\n		<xsl:variable name=\"AttDocID\" select=\"//INPUT[@type=\'hidden\'][@name=\'AttDocID\']/@value\"/>\r\n		<xsl:variable name=\"AttDB\" select=\"//INPUT[@type=\'hidden\'][@name=\'AttDB\']/@value\"/>\r\n		<xsl:variable name=\"ATTFile\"><![CDATA[/$file/]]></xsl:variable>\r\n		<xsl:for-each select=\"OPTION\">\r\n			<list key=\'Data\'>\r\n				<info key=\'tag\'>\r\n					<xsl:value-of select=\"concat($AttDB,\'/ByDate/\',$AttDocID,$ATTFile,text())\"/>\r\n				</info>\r\n				<info key=\'title\'>\r\n					<xsl:value-of select=\"text()\"/>\r\n				</info>\r\n			</list>\r\n		</xsl:for-each>\r\n	</xsl:template>\r\n	<xsl:template match=\"//INPUT[@type=\'hidden\'] | //INPUT[@name=\'docid\']\">\r\n		<xsl:value-of select=\"concat(\'!_!\',./@name,\'=\',./@value)\"/>\r\n	</xsl:template>\r\n</xsl:stylesheet>', '14', '3591', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##公司发文\r\n#set($xsl=$funcprof.get(\'GSFWXSL1\'))\r\n##将公司发文的id信息进行解密\r\n#set($Url=$EVENT.envEvent.base64Decode($Req_Fields.get(\'Id\')))\r\n#set( $fun_url = \"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$Url\" )\r\n#set( $fun_method = \"GET\" )\r\n#set( $fun_post_para = \"\" )\r\n#set( $fundata = $EVENT.bsEvent.getData($fun_method,$fun_post_para,$fun_url,$xsl,$CONTEXT) )\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n				</DataPropList >\r\n				<Record MSGID=\"$msgid\" KeyString=\"\">\r\n					<RecordPropList>\r\n					</RecordPropList>\r\n					<FieldList>\r\n##遍历显示正文内容\r\n#foreach($key in $fundata.get(\'Data\').keySet())\r\n#if($key == \'Id\' || $key == \'Over\')\r\n##流转标识包括特殊转义字符需要进行加密处理\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$EVENT.envEvent.base64Encode($fundata.get(\'Data\').get($key))</Field>\r\n#else\r\n						<Field Name=\"$key\" type=\"string\" base64=\"0\">$fundata.get(\'Data\').get($key)</Field>\r\n#end\r\n#end\r\n					</FieldList>\r\n					<AttachList>\r\n##输出附件的绝对URL地址及附件名称\r\n#foreach($key in $fundata.get(\'Attc\'))\r\n						<Attach URL=\"$unitprof.get(\'BS_SYSTEM_DOMAIN\')$key.get(\'Data\').get(\'tag\')\" format=\"\" category=\"\">$key.get(\'Data\').get(\'title\')</Attach>\r\n#end\r\n					</AttachList>\r\n				</Record>\r\n		</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '14', '3592', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '14', '3593', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n#set($ctl1X = 2)\r\n#set($num = 13)\r\n#set($num2 = 20)\r\n#set($lineHeight = 25)\r\n#set($labelHeight=20)\r\n#set($controlHeight=23)\r\n#set($x = 2)\r\n#set($y = 5)\r\n#set($lb1Width=70)\r\n#set($lb2Width=150)\r\n#set($ctl2X=$lb1Width+5)\r\n<msc>\r\n<Head>\r\n            <Info Name=\"Code\">1</Info>\r\n            <Info Name=\"Reason\"></Info>\r\n</Head>\r\n<Body Text=\"公司发文详细\" BackColor=\"#FFFFFF\">\r\n	<Label Name=\"label1\" ForeColor=\"#ABCDEF\" Location=\"$x,$y\" Width=\"$lb1Width\"   Text=\"发文类型:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox1\"  Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Type\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label2\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"文头:\"/>\r\n       #set($x = $ctl2X)\r\n       #set($temp_a=${fields.get(\'V_WenTou\').value.length()})\r\n       #set($temp_b=$temp_a/$num)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n       <Label Name=\"textBox2\" Location=\"$x,$y\" Size=\"$lb2Width,$controlHeight\" Text=\"${fields.get(\'V_WenTou\').value}\"/>\r\n       #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label3\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"标题:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox3\"  Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Title\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label4\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"附件名称:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox4\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Attachname\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label5\" Location=\"$x,$y\" Width=\"80\" ForeColor=\"#ABCDEF\" Text=\"拟稿人及部门:\"/>\r\n       #set($y = $y+$lineHeight)\r\n       <Label Name=\"textBox5\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Ng_V_DraftDept\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label6\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"拟稿日期:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox6\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Ngrq\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)\r\n       <Label Name=\"label7\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"文号:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox7\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Wh\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label8\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"主题词:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox8\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Ztc\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label9\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\"  Text=\"主送单位:\"/>\r\n       #set($x = $ctl2X)\r\n       #set($temp_a=${fields.get(\'V_Zsdw\').value.length()})\r\n       #set($temp_b=$temp_a/$num)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n       <Label Name=\"textBox9\" Location=\"$x,$y\" Width=\"$lb2Width\" Size=\"150,$controlHeight\" Text=\"${fields.get(\'V_Zsdw\').value}\"/>\r\n        #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)  \r\n        <Label Name=\"label10\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"抄报单位:\"/>\r\n       #set($x = $ctl2X)\r\n       #set($temp_a=${fields.get(\'V_Cbdw\').value.length()})\r\n       #set($temp_b=$temp_a/$num)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n       \r\n       <Label Name=\"textBox10\" Location=\"$x,$y\" Width=\"$lb2Width\" Size=\"150,$controlHeight\" Text=\"${fields.get(\'V_Cbdw\').value}\"/>\r\n       #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label11\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"抄送单位:\"/>\r\n       #set($x = $ctl2X)\r\n       #set($temp_a=${fields.get(\'V_Csdw\').value.length()})\r\n       #set($temp_b=$temp_a/$num)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n       <Label Name=\"textBox11\" Location=\"$x,$y\" Width=\"$lb2Width\" Size=\"150,$controlHeight\" Text=\"${fields.get(\'V_Csdw\').value}\"/>\r\n       #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label12\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"公司内部:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox12\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Csdw_Nb\').value}\"/>\r\n        #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label13\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"会签部门:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox13\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Hqdw\').value}\"/>\r\n        #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label14\" Location=\"$x,$y\" Width=\"80\" ForeColor=\"#ABCDEF\" Text=\"发文单位落款:\"/>\r\n      #set($y = $y+$lineHeight)\r\n      #set($temp_a=${fields.get(\'V_LuoKuan\').value.length()})\r\n       #set($temp_b=$temp_a/$num2)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n       <Label Name=\"textBox14\" Location=\"$x,$y\" Size=\"220,$controlHeight\" Text=\"${fields.get(\'V_LuoKuan\').value}\"/>\r\n        #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label15\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"密级:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox15\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Mj\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)   \r\n        <Label Name=\"label16\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"缓急程度:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox16\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Degree\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n       <Label Name=\"label166\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"附件:\"/>\r\n       #set($x = $ctl2X)\r\n       <Label Name=\"textBox18\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'V_Mj\').value}\"/>\r\n \r\n        #set($y = $y+$lineHeight)\r\n        #set($x = $ctl1X)  \r\n       <Attach Name=\"attachs1\" Location=\"$x,$y\" Width=\"220\"  Source=\"\r\n	#foreach($attach in $record.attachs.get(\'attachs\'))\r\n	${attach.get(\"Value\")}|${attach.get(\"URL\")},\r\n                #end\r\n       \"/>\r\n       #set($y = $y+50)\r\n\r\n       <Label Name=\"label17\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"文字核稿:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox17\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Hg\').value}\"/>\r\n        #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n        <Label Name=\"label18\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"审核:\"/>\r\n       #set($x = $ctl2X)\r\n       #set($temp_a=${fields.get(\'Yj_Sh\').value.length()})\r\n       #set($temp_b=$temp_a/$num)\r\n       #set($temp_b=$temp_b+1)\r\n       #set($controlHeight=($temp_b*$labelHeight))\r\n	<Label Name=\"textBox18\" Location=\"$x,$y\" Size=\"$lb2Width,$controlHeight\" Text=\"${fields.get(\'Yj_Sh\').value}\"/>\r\n       #set($y = $y+$controlHeight)\r\n       #set($x = $ctl1X)  \r\n        <Label Name=\"label19\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"会签:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox19\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Hq\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  	 \r\n	 <Label Name=\"label20\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"技术核稿:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox20\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Jshg\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n        <Label Name=\"labe21\" Location=\"$x,$y\" Width=\"$lb1Width\"  ForeColor=\"#ABCDEF\" Text=\"阅核:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox21\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Yh\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n        <Label Name=\"label22\" Location=\"$x,$y\" Width=\"$lb1Width\" ForeColor=\"#ABCDEF\" Text=\"审签:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox22\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Sq\').value}\"/>\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  	 \r\n        <Label Name=\"label23\" Location=\"$x,$y\" Width=\"$lb1Width\"  ForeColor=\"#ABCDEF\" Text=\"签发:\"/>\r\n       #set($x = $ctl2X)\r\n	<Label Name=\"textBox23\" Location=\"$x,$y\" Width=\"$lb2Width\" Text=\"${fields.get(\'Yj_Qf\').value}\"/>\r\n \r\n       #if(${fields.get(\'MyYj\').value.length()}>0)\r\n       #set($y = $y+$lineHeight)\r\n       #set($x = $ctl1X)  \r\n         <Label Name=\"label24\" Location=\"$x,$y\" Width=\"$lb1Width\"  ForeColor=\"#ABCDEF\" Text=\"我的意见:\"/>\r\n        #set($y = $y+$lineHeight)\r\n        #set($temp_a=${fields.get(\'MyYj\').value.length()})\r\n        #set($temp_b=$temp_a/$num)\r\n        #set($temp_b=$temp_b+1)\r\n        #set($controlHeight=($temp_b*$labelHeight))\r\n	<Label Name=\"textBox24\" Location=\"$x,$y\" Size=\"220,$controlHeight\" Text=\"${fields.get(\'MyYj\').value}\"/>\r\n       #set($y = $y+$controlHeight)\r\n        #end\r\n     \r\n       #set($x = $ctl1X)  \r\n       #if(${fields.get(\'CanYjsr\').value}==\"true\")\r\n\r\n        <Label Name=\"label25\" Location=\"$x,$y\" Width=\"$lb1Width\"  ForeColor=\"#ABCDEF\" Text=\"请输入意见:\"/>\r\n        #set($y = $y+$lineHeight)\r\n	<TextBox Location=\"$x,$y\" Size=\"220,100\" Name=\"textBox25\" />\r\n       #set($y = $y+$lineHeight)\r\n       #end\r\n       \r\n       <Attach Location=\"$x,$y\"  Width=\"220\" Name=\"attachs2\" />\r\n      #if(${fields.get(\'Browse\').value.length()}>0)\r\n      <MenuItem   Text=\"浏览正文\" Click=\"cmd:DownLoadFile(${fields.get(\'Browse\').value})\" />\r\n     #end\r\n      <MenuItem   Text=\"处理结束\" Click=\"url:c=OffDetailOver#Id=${fields.get(\'Id\').value}#Over=${fields.get(\'Over\').value}#V_Clyj_Edit_Temp=Local:textBox25.Text#target=_blank\" />\r\n</Body>\r\n</msc>\r\n#end\r\n</Response>', '14', '3594', 'wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>	\r\n<msc>\r\n<Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n  <Body Name=\"Login\" BackgroundImage=\"image/login.jpg\" Text=\"登录\"   >\r\n \r\n<Actions>\r\n    <Action Name=\"act1\" Code=\"cmd:SetAppSetting(USERNAME,Local:UserName.Text);cmd:SetAppSetting(PASSWORD,Local:Pwd.Text,Local:cb1.Checked);url:c=MainPage#username=Local:UserName.Text#password=Local:Pwd.Text#compress=gzip#encrypt=des\"/>\r\n</Actions>\r\n    <TextBox  Name=\"UserName\" Width=\"120\" Text=\"Global:UserName\"   Location=\"90,95\"/>\r\n    <TextBox Name=\"Pwd\" Width=\"120\" Text=\"Global:PASSWORD\" PasswordChar=\"*\" Location=\"90,125\"/><ComboBox Name=\"combo1\" Size=\"90,120\" Location=\"90,150\" Source=\"abce!_!abce\" >\r\n<Item Text=\"1\" Value=\"1\"/>\r\n<Item Text=\"2\" Value=\"2\"/>\r\n<Item Text=\"3\" Value=\"3\"/>\r\n</ComboBox>\r\n    <CheckBox Name=\"cb1\" Width=\"15\" Height=\"15\" Checked=\"True\" Location=\"81,180\"/>\r\n        <MenuItem Text=\"登录\"   Click=\"act:act1\"></MenuItem>\r\n        <MenuItem Text=\"退出\"   Click=\"cmd:Exit()\"></MenuItem>\r\n     </Body>\r\n</msc>\r\n</Response>', '10', '3611', 'Brew');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '10', '3612', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##登录返回html\r\n<html>\r\n<head>\r\n<title>上海电信OA主页面</title>\r\n    <link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n    <script type= \"text/javascript\"> \r\nfunction  sub_form(f,flag,code){ 	\r\n    document.forms[0].CurType.value=flag;\r\n    document.forms[0].RequestCode.value=code;\r\n    f.submit(); \r\n}\r\nfunction  sub_fun(f,code){	\r\n    document.forms[0].RequestCode.value=code;\r\n    f.submit(); \r\n}\r\nfunction  sub_back(f,code,index){	\r\n    document.forms[0].RequestCode.value=code;\r\n	document.forms[0].ProfName.value=index;\r\n    f.submit(); \r\n}\r\n</script>\r\n</head>\r\n<body bgcolor=\"ffffff\" leftmargin=\"0\" topmargin=\"20\">\r\n \r\n<form name=\"form\" action=\"browser\" method=\"post\">\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n\r\n<table align=\"center\" width=\"240\" height=\"300\" border=\"3\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"EAE8E8\">\r\n	<tr>\r\n		<td width=\"33%\"><Strong><font size=\"3\" color=\"blue\">\r\n		<a href=\"javascript:sub_form(document.forms[0],\'1\',\'TaskBoxList\');\">代办箱</a>\r\n		</font><br><font size=\"2\" color=\"red\">(${fields.get(\"DBTASKNUM\").value}待办)</font></td>\r\n		<td width=\"33%\"><Strong><font size=\"3\" color=\"blue\">\r\n		<a href=\"javascript:sub_form(document.forms[0],\'0\',\'TaskBoxList\');\">在办箱</a>\r\n		</font></Strong><br><font size=\"2\" color=\"red\">(${fields.get(\"ZBTASKNUM\").value}在办)</font></td >\r\n		<td width=\"33%\"><Strong><font size=\"3\" color=\"blue\">公告</td >\r\n\r\n	</tr>\r\n	<tr>\r\n		<td><Strong><font size=\"3\" color=\"blue\">收邮件</font></Strong><br><font size=\"2\" color=\"red\">(${fields.get(\"MAILNUM\").value}新邮件)</font></td>\r\n		<td><Strong><font size=\"3\" color=\"blue\">\r\n		<a href=\"javascript:sub_fun(document.forms[0],\'MailIndex\');\">写邮件</a>\r\n		</font></Strong></td >\r\n		<td><Strong><font size=\"3\" color=\"blue\">公司通信录</font></Strong></td >\r\n\r\n	</tr>\r\n	<tr>\r\n		<td><Strong><font size=\"3\" color=\"blue\">会议通知</font></Strong></td>\r\n		<td><Strong><font size=\"3\" color=\"blue\"><a href=\"javascript:sub_back(document.forms[0],\'Login\',\'INDEX\');\">返回</a></font></Strong></td >\r\n		<td><Strong><font size=\"3\" color=\"blue\">会议室预定</font></Strong></td >\r\n\r\n	</tr>\r\n</table>\r\n<INPUT name=\"Session\" type=\"hidden\" value=\"$Session\"/>\r\n<INPUT name=\"Browser_Username\" type=\"hidden\" value=\"$Browser_Username\"/>\r\n<INPUT name=\"Browser_Password\" type=\"hidden\" value=\"$Browser_Password\"/>\r\n<input name=\"ClientSysType\" type=\"hidden\"  value=\"$ClientSysType\"/>\r\n<input name=\"RequestAuthString\" type=\"hidden\"  value=\"$RequestAuthString\"/>\r\n<INPUT name=\"Cur\" type=\"hidden\" value=\"\"/>\r\n<INPUT name=\"RequestCode\" type=\"hidden\" value=\"\"/>\r\n<INPUT name=\"CurType\" type=\"hidden\" value=\"\"/>\r\n<INPUT name=\"MailId\" type=\"hidden\" value=\"\"/>\r\n<input name=\"ProfName\" type=\"hidden\"  value=\"\"/>\r\n#end\r\n</form>\r\n</body>\r\n</html>', '10', '3613', 'ie_wm');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '#macro( test1 $mykey $aaa)    \r\n#set($abc =$mykey * $aaa)\r\n$abc\r\n#end\r\n\r\n<Response>	\r\n<msc>\r\n<Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n#set($url=\"server:ftp://Administrator:IdealRD@132.159.156.163/login.jpg\")\r\n#if($hmul>1)\r\n#set($url=\"server:ftp://Administrator:IdealRD@132.159.156.163/login1.jpg\")\r\n#end\r\n<Body Name=\"Login\"   Text=\"登录\"   BackgroundImage= \"$url\" Size=\"$width,$height\">\r\n \r\n<Actions>\r\n    <Action Name=\"act1\" Code=\"cmd:SetAppSetting(UserName,Local:UserName.Text);cmd:SetAppSetting(PASSWORD,Local:Pwd.Text,Local:cb1.Checked);url:c=MainPage#username=Local:UserName.Text#password=Local:Pwd.Text#compress=gzip#encrypt=des\"/>\r\n</Actions>\r\n#set($x=$wmul*90)\r\n#set($y=$hmul*95)\r\n#set($width=$wmul*120)\r\n     <TextBox  Name=\"UserName\" Width=\"$width\" Text=\"Global:UserName\"   Location=\"$x,$y\"/>\r\n #set($x=$wmul*90)\r\n#set($y=$hmul*125)\r\n    <TextBox Name=\"Pwd\" Width=\"$width\" Text=\"Global:PASSWORD\" PasswordChar=\"*\" Location=\"$x,$y\"/>\r\n #set($x=$wmul*81)\r\n#set($y=$hmul*170)\r\n \r\n    <CheckBox Name=\"cb1\" Width=\"15\" Height=\"15\" Checked=\"True\" Location=\"$x,$y\"/>\r\n        <MenuItem Text=\"登录\"   Click=\"act:act1\"></MenuItem>\r\n        <MenuItem Text=\"退出\"   Click=\"cmd:Exit()\"></MenuItem>\r\n  </Body>\r\n</msc>\r\n</Response>', '10', '3614', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '47', '3984', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>	\r\n<msc>\r\n<Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n#set($url=\"server:ftp://Administrator:IdealRD@132.159.156.163/login2.jpg\")\r\n#if($hmul>1)\r\n#set($url=\"server:ftp://Administrator:IdealRD@132.159.156.163/login2.jpg\")\r\n#end\r\n<Body Name=\"Login\"   Text=\"登录\"   BackgroundImage= \"$url\" Size=\"$width,$height\">\r\n \r\n<Actions>\r\n    <Action Name=\"act1\" Code=\"cmd:SetAppSetting(UserName,Local:UserName.Text);cmd:SetAppSetting(PASSWORD,Local:Pwd.Text,Local:cb1.Checked);url:c=MainPage_Gov#username=Local:UserName.Text#password=Local:Pwd.Text#compress=gzip#encrypt=des\"/>\r\n</Actions>\r\n#set($x=$wmul*90)\r\n#set($y=$hmul*95)\r\n#set($width=$wmul*120)\r\n     <TextBox  Name=\"UserName\" Width=\"$width\" Text=\"Global:UserName\"   Location=\"$x,$y\"/>\r\n #set($x=$wmul*90)\r\n#set($y=$hmul*125)\r\n    <TextBox Name=\"Pwd\" Width=\"$width\" Text=\"Global:PASSWORD\" PasswordChar=\"*\" Location=\"$x,$y\"/>\r\n #set($x=$wmul*81)\r\n#set($y=$hmul*170)\r\n \r\n    <CheckBox Name=\"cb1\" Width=\"15\" Height=\"15\" Checked=\"True\" Location=\"$x,$y\"/>\r\n #set($x=$wmul*50)\r\n#set($y=$hmul*250)\r\n#set($width=$wmul*60)\r\n        <Button  Text=\"登录\"  Location=\"$x,$y\" Width=\"$width\"  Click=\"act:act1\"></Button>\r\n #set($x=$wmul*120)\r\n        <Button  Text=\"退出\"  Location=\"$x,$y\" Width=\"$width\"  Click=\"cmd:Exit()\"></Button>\r\n\r\n      \r\n  </Body>\r\n</msc>\r\n</Response>', '47', '3985', 'wince');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>	\r\n<msc>\r\n<Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n#set($url=\"server:ftp://Administrator:IdealRD@132.159.156.163/login2.jpg\")\r\n#if($hmul>1)\r\n#set($url=\"server:ftp://Administrator:IdealRD@132.159.156.163/login2.jpg\")\r\n#end\r\n<Body Name=\"Login\"   Text=\"登录\"   BackgroundImage= \"$url\" Size=\"$width,$height\">\r\n \r\n<Actions>\r\n    <Action Name=\"act1\" Code=\"cmd:SetAppSetting(UserName,Local:UserName.Text);cmd:SetAppSetting(PASSWORD,Local:Pwd.Text,Local:cb1.Checked);url:c=MainPage_Gov#username=Local:UserName.Text#password=Local:Pwd.Text#compress=gzip#encrypt=des\"/>\r\n</Actions>\r\n#set($x=$wmul*90)\r\n#set($y=$hmul*110)\r\n#set($width=$wmul*120)\r\n     <TextBox  Name=\"UserName\" Width=\"$width\" Text=\"Global:UserName\"   Location=\"$x,$y\"/>\r\n #set($x=$wmul*90)\r\n#set($y=$hmul*142)\r\n    <TextBox Name=\"Pwd\" Width=\"$width\" Text=\"Global:PASSWORD\" PasswordChar=\"*\" Location=\"$x,$y\"/>\r\n #set($x=$wmul*65)\r\n#set($y=$hmul*190)\r\n \r\n    <CheckBox Name=\"cb1\" Width=\"15\" Height=\"15\" Checked=\"True\" Location=\"$x,$y\"/>\r\n        <MenuItem Text=\"登录\"   Click=\"act:act1\"></MenuItem>\r\n        <MenuItem Text=\"退出\"   Click=\"cmd:Exit()\"></MenuItem>\r\n  </Body>\r\n</msc>\r\n</Response>', '47', '3986', 'wm');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##\r\n#set( $ht_xsl=$appprof.get(\'REPAIR_XSL\'))\r\n#set( $ht_every_url = $Req_Fields.get(\'url\'))\r\n#set( $ht_para_url = $EVENT.envEvent.base64Decode($ht_every_url) )\r\n#set($list11 = $ht_para_url.split(\"[?]\"))	\r\n#set($value11=$EVENT.envEvent.getArrayIndex($list11,1))\r\n##概要地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/mobileOA/documentInfoMsgU.jsp?$value11\" )\r\n##\r\n#set( $ht_method = \"GET\" )\r\n##\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##\r\n##标准数据输出模版\r\n##\r\n#set($outList1 = $ht_data.get(\'Data\').get(\'Info\').trim())\r\n#set($outList = $outList1.split(\'\\$\\n+\\s+\'))	\r\n$EVENT.envEvent.logger(\"aabcd:$outList.length()\")\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n		<Info Name=\"Url\">$ht_every_url</Info>>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n##遍历输出信息\r\n#foreach($key in $outList)\r\n#set($key=$key.trim())	\r\n#if($key.trim().length() > 0)\r\n	<Record MSGID=\"\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n			<Field Name=\"content\" type=\"string\" base64=\"0\">$key.replaceAll(\"[$]\", \" \")</Field>		\r\n		</FieldList>	\r\n		<AttachList>\r\n		</AttachList>		\r\n	</Record>	\r\n#end	\r\n#end	\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '53', '4308', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '53', '4309', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', 'aa', '53', '4310', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '49', '4427', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##信息列表\r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"信息快报\" Size=\"$width,$height\">\r\n	<ImageList Name=\"imagelist1\">\r\n	 \r\n		<Image Source=\"pic01.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventR2L=\"cmd:Back()\" Dock=\"Fill\">\r\n \r\n#set($width=$wmul*240)\r\n#set($height=$hmul*268)\r\n		<ListView Name=\"InfoList\" Location=\"0,0\" Font=\"Tahoma, 9pt\" Size=\"$width,$height\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\">\r\n<ColumnHeader Width=\"225\" />\r\n		<ListViewItem Text=\"今日快报\" ImageIndex=\"0\"  Click=\"url:c=InformationLetterList_Gov\" />\r\n 	<ListViewItem Text=\"工作动态\" ImageIndex=\"0\"  Click=\"url:c=InformationLetterList_Gov#categoryId=61#pageNumber=1\" />\r\n	<ListViewItem Text=\"政府建设\" ImageIndex=\"0\"  Click=\"url:c=InformationLetterList_Gov#categoryId=62#pageNumber=1\" />\r\n	<ListViewItem Text=\"经济贸易\" ImageIndex=\"0\"  Click=\"url:c=InformationLetterList_Gov#categoryId=63#pageNumber=1\" />\r\n	<ListViewItem Text=\"舆论监管\" ImageIndex=\"0\"  Click=\"url:c=InformationLetterList_Gov#categoryId=64#pageNumber=1\" />\r\n	<ListViewItem Text=\"政策法规\" ImageIndex=\"0\"  Click=\"url:c=InformationLetterList_Gov#categoryId=65#pageNumber=1\" />\r\n                <ListViewItem Text=\"新闻发布\" ImageIndex=\"0\"  Click=\"url:c=InformationLetterList_Gov#categoryId=66#pageNumber=1\" />\r\n		</ListView>\r\n	</MouseGesturePanel>\r\n <MenuItem Text=\"返回\" Click=\"cmd:Back()\"></MenuItem>\r\n\r\n	 	 </Body>\r\n</msc>\r\n</Response>', '49', '4428', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '50', '4433', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##信息快报详细\r\n#set($ht_xsl=$funcprof.get(\'TODAY_EXPRESS_CONT_XSL\'))\r\n#set( $ht_para_url = $EVENT.envEvent.base64Decode($Req_Fields.get(\'url\')) )\r\n#set($list11 = $ht_para_url.split(\"[?]\"))	\r\n#set($value11=$EVENT.envEvent.getArrayIndex($list11,1))\r\n##构造完整的地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/loadContentDetail.do?successIndex=6&$value11\" )\r\n##\r\n#set( $ht_method = \"GET\" )\r\n##\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n##遍历输出信息\r\n	<Record MSGID=\"\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n#set($TDatas = $ht_data.get(\'Data\'))\r\n#foreach($key in $TDatas.keySet())				\r\n			<Field Name=\"$key\" type=\"string\" base64=\"0\">$EVENT.envEvent.escapeXMLEntity($TDatas.get($key).trim())</Field>	\r\n#end			\r\n		</FieldList>			\r\n	</Record>	\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '50', '4434', null);
INSERT INTO `function_prof` VALUES ('TODAY_EXPRESS_CONT_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n		<map key=\"Data\">\r\n			<info key=\"Code\">1</info>\r\n			<map key=\"Data\">\r\n				<info key=\"content\"><xsl:value-of select=\"//TD[@class=\'contentDetail\']\"/></info>\r\n				<info key=\"title\"><xsl:value-of select=\"normalize-space(//TD[@class=\'contentTitle\']/text())\"/></info>\r\n			</map>			\r\n		</map>\r\n	</xsl:template>\r\n	<xsl:template match=\"//TD[@class=\'contentDetail\']//text()\">\r\n		<xsl:value-of select=\"normalize-space(//TD[@class=\'contentDetail\']//text())\"></xsl:value-of>\r\n		\r\n	</xsl:template>\r\n</xsl:stylesheet>', '50', '4435', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>	\r\n<msc>\r\n<Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n#foreach($record in $records)\r\n#set($fields = $record.fields)\r\n#set($labelHeight=13)\r\n#set($num = 17)\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n  <Body Name=\"InformationLetterCont\"  Text=\"信息内容\" Size=\"$width,$height\"  >\r\n  #set($temp_c=${fields.get(\'content\').value.length()})\r\n         #set($temp_c=$temp_c.length())\r\n         #set($temp_d=$temp_c/$num)\r\n         #set($temp_d=$temp_d+1)\r\n         #set($controlHeight=($temp_d*$labelHeight))	\r\n#set($width=$wmul*220)\r\n<Label Name=\"lblContent\" Size=\"$width,$controlHeight\" Location=\"5,5\" Text=\"${fields.get(\'content\').value}\"/>\r\n <MenuItem Text=\"返回\" Click=\"cmd:Back()\"></MenuItem>\r\n</Body>\r\n#end\r\n</msc>\r\n</Response>', '50', '4436', 'wm');
INSERT INTO `function_prof` VALUES ('TODAY_EXPRESS_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n		<map key=\"Data\">\r\n			<info key=\"Code\">1</info>\r\n			<info key=\"page_info\">\r\n				<xsl:value-of select=\"normalize-space(//FORM/text())\"/>\r\n			</info>\r\n			<xsl:apply-templates select=\"//FORM/A\"/>\r\n			<map key=\"Row\">\r\n				<xsl:apply-templates select=\"/HTML/BODY/DIV/UL/LI\"/>\r\n			</map>\r\n		</map>\r\n	</xsl:template>\r\n	<!-- 翻页信息 -->\r\n	<xsl:template match=\"//FORM/A\">\r\n		<xsl:choose>\r\n			<xsl:when test=\"text() = \'上一页\'\">\r\n				<xsl:element name=\"info\">\r\n					<xsl:attribute name=\"key\">frontPageNum</xsl:attribute>\r\n					<xsl:value-of select=\"normalize-space(substring-before(substring-after(@href,\',\'),\')\'))\"/>\r\n				</xsl:element>\r\n			</xsl:when>\r\n			<xsl:when test=\"text() = \'下一页\'\">\r\n				<xsl:element name=\"info\">\r\n					<xsl:attribute name=\"key\">nextPageNum</xsl:attribute>\r\n					<xsl:value-of select=\"normalize-space(substring-before(substring-after(@href,\',\'),\')\'))\"/>\r\n				</xsl:element>\r\n			</xsl:when>\r\n			<xsl:when test=\"text() = \'末页\'\">\r\n				<xsl:element name=\"info\">\r\n					<xsl:attribute name=\"key\">endPageNum</xsl:attribute>\r\n					<xsl:value-of select=\"normalize-space(substring-before(substring-after(@href,\',\'),\')\'))\"/>\r\n				</xsl:element>\r\n			</xsl:when>\r\n		</xsl:choose>\r\n	</xsl:template>\r\n	<xsl:template match=\"/HTML/BODY/DIV/UL/LI\">\r\n		<xsl:element name=\"map\">\r\n			<xsl:attribute name=\"key\">\r\n				<xsl:value-of select=\"position()\"/>\r\n			</xsl:attribute>\r\n			<info key=\"title\">\r\n				<xsl:value-of select=\"normalize-space(A/@title)\"/>\r\n			</info>\r\n			<info key=\"url\">\r\n				<xsl:value-of select=\"normalize-space(A/@href)\"/>\r\n			</info>\r\n			<info key=\"time\">\r\n				<xsl:value-of select=\"normalize-space(SPAN/text())\"/>\r\n			</info>\r\n		</xsl:element>\r\n	</xsl:template>\r\n</xsl:stylesheet>', '46', '4485', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '46', '4486', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '#set($ht_xsl=$funcprof.get(\'TODAY_EXPRESS_XSL\'))\r\n#set( $ht_para_page = $Req_Fields.get(\'pageNumber\') )\r\n#if($ht_para_page.length() == 0){\r\n#set( $ht_para_page = \"1\")\r\n#end\r\n#set( $ht_para_id = $Req_Fields.get(\'categoryId\') )\r\n##构造完整的地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/getCommonItemList.do?contentTitle=\" )\r\n##\r\n#set( $ht_method = \"POST\" )\r\n#set( $ht_post_para = \"pageNumber=ht_para_page,categoryId=ht_para_id\" )\r\n##\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,$ht_post_para,$ht_url,$ht_xsl,$CONTEXT) )\r\n##处理列表url的宏\r\n##\r\n#macro( splitUrl $key $url)\r\n#set($list = $url.split(\"[\']\"))	\r\n#set($value=$EVENT.envEvent.getArrayIndex($list,1))\r\n<Field Name=\"$key\" type=\"string\" base64=\"0\">$EVENT.envEvent.base64Encode($value)</Field>\r\n#end\r\n##\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n		<Item Name=\"next\">$!ht_data.get(\'nextPageNum\')</Item>\r\n		<Item Name=\"back\">$!ht_data.get(\'frontPageNum\')</Item>\r\n		<Item Name=\"pageinfo\">$ht_para_page</Item>\r\n		<Item Name=\"endnum\">$!ht_data.get(\'endPageNum\')</Item>\r\n	</DataPropList >\r\n##遍历输出信息\r\n#set($TRecords = $ht_data.get(\'Row\'))\r\n#foreach($tkey in $TRecords.keySet())	\r\n	<Record MSGID=\"$tkey\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n#set($TRecord =$TRecords.get($tkey))			\r\n#foreach($key in $TRecord.keySet())\r\n#if($key == \"url\")\r\n#set($list11 = ${TRecord.get($key).split(\"[\']\")})	\r\n#set($value11=$EVENT.envEvent.getArrayIndex($list11,1))\r\n			<Field Name=\"$key\" type=\"string\" base64=\"0\">$EVENT.envEvent.base64Encode($value11)</Field>\r\n#elseif($key == \"title\")\r\n			<Field Name=\"$key\" type=\"string\" base64=\"0\">$EVENT.envEvent.escapeXMLEntity(${TRecord.get($key)})</Field>	\r\n#else\r\n			<Field Name=\"$key\" type=\"string\" base64=\"0\">${TRecord.get($key)}</Field>				\r\n#end				\r\n#end			\r\n		</FieldList>			\r\n	</Record>\r\n#end		\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '46', '4487', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##信息列表\r\n#set($Back=${dataprops.get(\'back\')})\r\n#set($Next=${dataprops.get(\'next\')})\r\n#set($PageInfo=${dataprops.get(\'pageinfo\')})\r\n#set($PageCount=${dataprops.get(\'endPageNum\')})\r\n \r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"信息快报\" Size=\"$width,$height\">\r\n	<ImageList Name=\"imagelist1\">\r\n	 \r\n		<Image Source=\"pic01.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventR2L=\"cmd:Back()\" Dock=\"Fill\">\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*244)\r\n		<ListView Name=\"InfoList\" Location=\"0,0\" Size=\"$width,$height\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\">\r\n#set($width=$wmul*225)\r\n			<ColumnHeader Width=\"$width\" />\r\n	#foreach($record in $records)\r\n\r\n	#set($fields = $record.fields)\r\n\r\n	#set($Sort=${fields.get(\'Sort\').value})\r\n 			<ListViewItem Text=\"${fields.get(\'title\').value}\" ImageIndex=\"0\"  Click=\"url:c=InformationLetterCont_Gov#url=${fields.get(\'url\').value}\" />\r\n	#end\r\n		</ListView>\r\n#set($height=$hmul*250)\r\n <Label Text=\"$PageInfo\" Size=\"240, 20\" Location=\"0, $height\" TextAlign=\"TopRight\"/>\r\n	</MouseGesturePanel>\r\n <MenuItem Text=\"返回\" Click=\"cmd:Back()\"></MenuItem>\r\n <MenuItem Text=\"操作\">\r\n#if($PageCur==$Back)\r\n  		<MenuItem Text=\"上一页\"  Enabled=\"false\"/>\r\n#else\r\n                <MenuItem Text=\"上一页\"  Click=\"url:c=InformationLetterList_Gov#pageNumber=${dataprops.get(\'back\')}#target=_self\"/>\r\n#end\r\n#if($PageCur==$Next)\r\n  		<MenuItem Text=\"下一页\"  Enabled=\"false\"/>\r\n#else\r\n                <MenuItem Text=\"下一页\"  Click=\"url:c=InformationLetterList_Gov#pageNumber=${dataprops.get(\'next\')}#target=_self\"/>\r\n#end\r\n       </MenuItem>\r\n	 	 </Body>\r\n</msc>\r\n</Response>', '46', '4488', 'wm');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##\r\n#set($ht_xsl=$appprof.get(\'REPAIR_XSL\'))\r\n#set( $ht_every_url = $Req_Fields.get(\'url\'))\r\n#set( $ht_para_url = $EVENT.envEvent.base64Decode($ht_every_url) )\r\n#set($list11 = $ht_para_url.split(\"[?]\"))	\r\n#set($value11=$EVENT.envEvent.getArrayIndex($list11,1))\r\n##\r\n#set( $ht_method = \"GET\" )\r\n##附件地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/mobileOA/documentInfoAttachment.jsp?$value11\" )\r\n##\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_attch_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##标准数据输出模版\r\n##	\r\n#set($attchList = $ht_attch_data.get(\'Data\').get(\'Info\').trim().split(\"[$]\"))	\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n		<Info Name=\"Url\">$ht_every_url</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n##遍历输出信息\r\n	<Record MSGID=\"\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n		</FieldList>	\r\n		<AttachList>\r\n##输出附件的绝对URL地址及附件名称\r\n#foreach($key in $attchList)\r\n#set($bList = $key.split(\"[-][/]\"))\r\n#set($bListUrl = $EVENT.envEvent.getArrayIndex($bList,1))\r\n#set($bListName = $bListUrl.split(\"[?]\"))\r\n			<Attach URL=\"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/mobileOA/downloadFile_mobile.jsp?$EVENT.envEvent.getArrayIndex($bListName,1)\" format=\"\" category=\"\">$EVENT.envEvent.getArrayIndex($bList,0)</Attach>\r\n#end\r\n		</AttachList>		\r\n	</Record>	\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '56', '4517', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '56', '4518', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', 'aa', '56', '4519', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '57', '4523', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', 'aa', '57', '4524', 'wm');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##\r\n#set($ht_xsl=$appprof.get(\'REPAIR_XSL\'))\r\n#set( $ht_every_url = $Req_Fields.get(\'url\'))\r\n#set( $ht_para_url = $EVENT.envEvent.base64Decode($ht_every_url) )\r\n#set($list11 = $ht_para_url.split(\"[?]\"))	\r\n#set($value11=$EVENT.envEvent.getArrayIndex($list11,1))\r\n##概要地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/mobileOA/documentInfo.jsp?$value11\" )\r\n##\r\n#set( $ht_method = \"GET\" )\r\n##\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##\r\n#set($outList = $ht_data.get(\'Data\').get(\'Info\').trim().split(\"[-][ ]\"))	\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n		<Info Name=\"Url\">$ht_every_url</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n##遍历输出信息\r\n	<Record MSGID=\"\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n			<Field Name=\"title\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,0)</Field>\r\n			<Field Name=\"gongwentype\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,1)</Field>\r\n			<Field Name=\"jinji\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,2)</Field>\r\n			<Field Name=\"laiwendept\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,3)</Field>\r\n			<Field Name=\"wenhao\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,4)</Field>\r\n			<Field Name=\"qianfaren\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,5)</Field>\r\n			<Field Name=\"zhusongdept\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,6)</Field>\r\n			<Field Name=\"caosongdept\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,7)</Field>			\r\n		</FieldList>	\r\n		<AttachList>\r\n		</AttachList>		\r\n	</Record>	\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '52', '4606', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '52', '4607', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##公文概要\r\n#set($Back=${dataprops.get(\'back\')})\r\n#set($Next=${dataprops.get(\'next\')})\r\n#set($PageInfo=${dataprops.get(\'pageinfo\')})\r\n#set($PageCount=${dataprops.get(\'endPageNum\')})\r\n \r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"公文概要\" Size=\"$width,$height\">\r\n	<ImageList Name=\"imagelist1\">\r\n	    <Image Source=\"pic01.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventR2L=\"cmd:Back()\" Dock=\"Fill\">\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*244)\r\n\r\n<TabControl Name=\"tab1\" Size=\"225,250\" ToolbarSize=\"225,20\"  Location=\"5,10\"   BackColor=\"255,255,255\"  DockType=\"Top\"  ItemsAlignment=\"TopLeft\">\r\n       <TabPage BackColor=\"128,128,128\" ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"概况\"/>\r\n              <TabPage BackColor=\"128,128,128\" ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"附件\"/>\r\n               <TabPage BackColor=\"128,128,128\" ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"处理\"/>\r\n              <TabPage BackColor=\"128,128,128\" ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"记录\"/>\r\n        </TabControl>\r\n</MouseGesturePanel>\r\n<MenuItem Text=\"返回\" Click=\"cmd:Back()\"></MenuItem>\r\n\r\n</Body>\r\n</msc>\r\n</Response>', '52', '4608', 'wm');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '#set($ht_xsl=$appprof.get(\'REPAIR_XSL\'))\r\n#set( $ht_para_page = $Req_Fields.get(\'pageNumber\') )\r\n#set( $ht_para_id = $Req_Fields.get(\'categoryId\') )\r\n##构造完整的地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/mobileOA/listDocumentDowaiting.jsp\" )\r\n##\r\n#set( $ht_method = \"GET\" )\r\n##\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n		<Item Name=\"next\">$!ht_data.get(\'nextPageNum\')</Item>\r\n		<Item Name=\"back\">$!ht_data.get(\'frontPageNum\')</Item>\r\n		<Item Name=\"pageinfo\">$!ht_data.get(\'page_info\')</Item>\r\n		<Item Name=\"endnum\">$!ht_data.get(\'endPageNum\')</Item>\r\n	</DataPropList >\r\n##遍历输出信息\r\n#set($tRecords = $ht_data.get(\'Data\').get(\'Info\'))\r\n#set($tLists = $tRecords.split(\'\\$\\n+\\s+\'))	\r\n#foreach($key in $tLists)\r\n#set($key = $ket.trim())		\r\n#if($key.length() > 0)\r\n#set($tSubLists = $key.split(\"[-][/]\"))	\r\n#set($tkey = $EVENT.envEvent.getArrayIndex($tSubLists,1).trim())\r\n#set($tSSubLists = $tkey.split(\"[-]\"))	\r\n	<Record MSGID=\"\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n			<Field Name=\"title\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($tSubLists,0).trim()</Field>\r\n			<Field Name=\"url\" type=\"string\" base64=\"0\">$EVENT.envEvent.base64Encode($EVENT.envEvent.getArrayIndex($tSSubLists,0).trim())</Field>	\r\n			<Field Name=\"type\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($tSSubLists,1).trim()</Field>\r\n		</FieldList>			\r\n	</Record>\r\n#end	\r\n#end		\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '51', '4615', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '51', '4616', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##公文列表\r\n#set($Back=${dataprops.get(\'back\')})\r\n#set($Next=${dataprops.get(\'next\')})\r\n#set($PageInfo=${dataprops.get(\'pageinfo\')})\r\n#set($PageCount=${dataprops.get(\'endPageNum\')})\r\n \r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"公文列表\" Size=\"$width,$height\">\r\n	<ImageList Name=\"imagelist1\">\r\n	 \r\n		<Image Source=\"pic01.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventR2L=\"cmd:Back()\" Dock=\"Fill\">\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*244)\r\n		<ListView Name=\"DocList\" Location=\"0,0\" Size=\"$width,$height\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\">\r\n#set($width=$wmul*225)\r\n			<ColumnHeader Width=\"$width\" />\r\n	#foreach($record in $records)\r\n\r\n	#set($fields = $record.fields)\r\n\r\n	#set($Sort=${fields.get(\'Sort\').value})\r\n 			<ListViewItem Text=\"${fields.get(\'title\').value}\" ImageIndex=\"0\"  Click=\"url:c=DocumentContent_Gov#url=${fields.get(\'url\').value}\" />\r\n	#end\r\n		</ListView>\r\n#set($height=$hmul*250)\r\n <Label Text=\"$PageInfo\" Size=\"240, 20\" Location=\"0, $height\" TextAlign=\"TopRight\"/>\r\n	</MouseGesturePanel>\r\n <MenuItem Text=\"返回\" Click=\"cmd:Back()\"></MenuItem>\r\n <MenuItem Text=\"操作\">\r\n#if($PageCur==$Back)\r\n  		<MenuItem Text=\"上一页\"  Enabled=\"false\"/>\r\n#else\r\n                <MenuItem Text=\"上一页\"  Click=\"url:c=DocumentList_Gov#pageNumber=${dataprops.get(\'back\')}#target=_self\"/>\r\n#end\r\n#if($PageCur==$Next)\r\n  		<MenuItem Text=\"下一页\"  Enabled=\"false\"/>\r\n#else\r\n                <MenuItem Text=\"下一页\"  Click=\"url:c=DocumentList_Gov#pageNumber=${dataprops.get(\'next\')}#target=_self\"/>\r\n#end\r\n       </MenuItem>\r\n	 	 </Body>\r\n</msc>\r\n</Response>', '51', '4617', 'wm');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '#set($ht_xsl=$appprof.get(\'SELECT_USER_XSL\'))\r\n#set( $ht_para_entity = $Req_Fields.get(\'entity\') )\r\n#if($ht_para_entity.length() == 0)\r\n#set( $ht_para_entity = \"\")	\r\n#end\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}\")\r\n#set( $ht_url = \"${ht_url}/userAndEntityListAction.do?entityId=$ht_para_entity\" )\r\n##\r\n#set( $ht_method = \"GET\" )\r\n##\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n##遍历输出信息\r\n#set($tEntity = $ht_data.get(\'Data\').get(\'entity\').trim())\r\n#set($list1 = $tEntity.split(\";\"))\r\n	<Record MSGID=\"entity\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>				\r\n#foreach($key in $list1)\r\n#set($key=$key.trim())\r\n#set($list2 = $key.split(\"-\"))	\r\n#if($key.trim().length() > 0)		\r\n			<Field Name=\"$EVENT.envEvent.getArrayIndex($list2,0).trim()\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($list2,1).trim()</Field>			\r\n#end	\r\n#end			\r\n		</FieldList>			\r\n	</Record>	\r\n##遍历输出信息\r\n#set($tEntity = $ht_data.get(\'Data\').get(\'user\').trim())\r\n#set($list1 = $tEntity.split(\";\"))\r\n	<Record MSGID=\"user\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>				\r\n#foreach($key in $list1)\r\n#set($key=$key.trim())\r\n#set($list2 = $key.split(\"-\"))	\r\n#if($key.trim().length() > 0)		\r\n			<Field Name=\"${EVENT.envEvent.getArrayIndex($list2,0).trim()}\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($list2,1).trim()</Field>			\r\n#end	\r\n#end			\r\n		</FieldList>			\r\n	</Record>	\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '62', '4825', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '62', '4826', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', 'aa', '62', '4827', 'wm');
INSERT INTO `function_prof` VALUES ('ITEM_NUM_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n			<map key=\'Data\'>\r\n				<info key=\'item_nums\'><xsl:value-of select=\"normalize-space(/HTML/BODY)\"/></info>\r\n			</map>\r\n		</map>\r\n</xsl:template>\r\n</xsl:stylesheet>', '45', '4834', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '45', '4835', null);
INSERT INTO `function_prof` VALUES ('GET_SESSION_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n		</map>\r\n	</xsl:template>\r\n</xsl:stylesheet>', '45', '4836', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##登录\r\n##取得登录SessionID\r\n#set($ht_url  = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/loginForm.do\" )\r\n#set($ht_method = \"GET\" )\r\n#set($ht_xsl=$funcprof.get(\"GET_SESSION_XSL\"))\r\n#set( $ht_data = $EVENT.bsEvent.getSession($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##登录\r\n#set($ht_xsl=$funcprof.get(\"LOGIN_XSL\"))\r\n#set($ht_url  = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/login.do\" )\r\n#set($ht_method = \"POST\" )\r\n#set($ht_post_para = \"loginName=RequestUserLoginName,password=RequestUserPassword\" )\r\n#set( $ht_data = $EVENT.bsEvent.getSession($ht_method,$ht_post_para,$ht_url,$ht_xsl,$CONTEXT) )\r\n##取得条目数目\r\n#set($ht_xsl=$funcprof.get(\"ITEM_NUM_XSL\"))\r\n#set($ht_url  = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/indexBusinessTotalAction.do\" )\r\n#set($ht_method = \"GET\" )\r\n#set($ht_item_num = $EVENT.bsEvent.getSession($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n#set($ht_item_num_array = $ht_item_num.get(\'Data\').get(\'item_nums\').split(\'[-]\'))\r\n##加入sysUserID\r\n#set($tempsomel=$EVENT.bsEvent.addUserData(\"sysUserID\",$EVENT.envEvent.getArrayIndex($ht_item_num_array,4).trim(),$CONTEXT))\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n		<Record MSGID=\"\" KeyString=\"\">\r\n			<RecordPropList>\r\n			</RecordPropList>\r\n			<FieldList>	\r\n				<Field Name=\"waitingDocment\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($ht_item_num_array,0)</Field>\r\n				<Field Name=\"wantingNotice\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($ht_item_num_array,1)</Field>\r\n				<Field Name=\"leaderPoint\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($ht_item_num_array,2)</Field>\r\n				<Field Name=\"specailPassReading\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($ht_item_num_array,3)</Field>\r\n				<Field Name=\"userID\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($ht_item_num_array,4)</Field>										\r\n			</FieldList>\r\n			<AttachList>\r\n			</AttachList>\r\n		</Record>\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '45', '4837', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n #foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<Head>\r\n         <Info Name=\"Code\">1</Info>\r\n         <Info Name=\"Reason\"></Info>\r\n        <Info Name=\"Session\">$Session</Info>\r\n         <Info Name=\"Comment\">$fields.get(\"STRYIJIAN\").value</Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n  <Body Text=\"Global:UserName\" Name=\"MainForm\" Size=\"$width,$height\">\r\n<Vars>\r\n    <Var Name=\"Local:UserName\" Value=\"Gaoxin\" />\r\n</Vars>\r\n<Actions>\r\n    <Action Name=\"actInsert\" Code=\"cmd:SetValue(Local:tbUser.Text,Global:UserName);sql:Insert into User (UserName,Pwd) values (\'{0}\',\'{1}\')#Global:UserName,Global:PASSWORD\" />\r\n<Action Name=\"actUpdate\" Code=\"cmd:SetValue(Local:tbUser.Text,Local:UserName);sql:Update User set UserName=\'{0}\' where UserName=\'{1}\'#Local:UserName,Global:UserName\" />\r\n<Action Name=\"actDel\" Code=\"cmd:SetValue(Local:tbUser.Text,);sql:Delete from User where UserName=\'{0}\'#Local:UserName\" />\r\n</Actions>\r\n     <ImageList Name=\"imagelist1\" ImageSize=\"32,32\">\r\n         <Image Source=\"contacts.bmp\"/>\r\n         <Image Source=\"calendar.bmp\"/>\r\n     </ImageList>   \r\n\r\n    <MouseGesturePanel Dock=\"Fill\"  eventR2L=\"cmd:Back()\"  >  \r\n#set($width=$wmul*240)\r\n \r\n    <TabControl ToolbarSize=\"$width,46\" BackColor=\"128,128,128\" BackgroundImage=\"Bkg_TabMenu.png\"  DockType=\"Bottom\"  Dock=\"Fill\"   ItemsAlignment=\"BottomRight\">\r\n\r\n      <TabPage BackColor=\"#808080\" ImageDefault=\"server:ftp://Administrator:IdealRD@132.159.156.163/Home_off.png\" ImagePressed=\"Home_on.png\">\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"xxkb.png\" Location=\"$x,$y\"  Size=\"50,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"信息快报\"  />\r\n#set($x=$wmul*98)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"gwbl.png\" Location=\"$x,$y\" Size=\"50,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"公文办理\"   />\r\n#set($x=$wmul*166)\r\n#set($y=$hmul*4)\r\n     <ImageButton ImageDefault=\"ldzs.png\" Location=\"$x,$y\" Size=\"50,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"领导指示\"  />  \r\n\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*78)\r\n        <ImageButton ImageDefault=\"zscy.png\" Location=\"$x,$y\"  Size=\"50,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"专送传阅\"  />\r\n#set($x=$wmul*98)\r\n#set($y=$hmul*78)\r\n        <ImageButton ImageDefault=\"tzgl.png\" Location=\"$x,$y\" Size=\"50,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"通知管理\"   />\r\n#set($x=$wmul*166)\r\n#set($y=$hmul*78)\r\n     <ImageButton ImageDefault=\"xzxn.png\" Location=\"$x,$y\" Size=\"50,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"行政效能\"  />  \r\n\r\n \r\n\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*152)\r\n        <ImageButton ImageDefault=\"rcap.png\" Location=\"$x,$y\"  Size=\"50,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"日程安排\"  />\r\n#set($x=$wmul*98)\r\n#set($y=$hmul*152)\r\n        <ImageButton ImageDefault=\"txl.png\" Location=\"$x,$y\" Size=\"50,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"通讯录\"   />\r\n#set($x=$wmul*166)\r\n#set($y=$hmul*152)\r\n     <ImageButton ImageDefault=\"xtsz.png\" Location=\"$x,$y\" Size=\"50,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"系统设置\"  />  \r\n\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Customer_off.png\"  BackColor=\"128,128,128\"  ImagePressed=\"Customer_on.png\">\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"gwbl.png\" Location=\"$x,$y\"  Size=\"50,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"公文办理\"  />\r\n#set($x=$wmul*98)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"ldzs.png\" Location=\"$x,$y\" Size=\"50,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"领导指示\"   />\r\n#set($x=$wmul*166)\r\n#set($y=$hmul*4)\r\n     <ImageButton ImageDefault=\"zscy.png\" Location=\"$x,$y\" Size=\"50,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"专送传阅\"  />  \r\n\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*78)\r\n        <ImageButton ImageDefault=\"rcap.png\" Location=\"$x,$y\"  Size=\"50,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"日程安排\"  />\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Calendar_off.png\" BackColor=\"128,128,128\"   ImagePressed=\"Calendar_on.png\">\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"tzgl.png\" Location=\"$x,$y\"  Size=\"50,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"通知管理\"  />\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Order_off.png\" BackColor=\"128,128,128\"  ImagePressed=\"Order_on.png\">\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"xxkb.png\" Location=\"$x,$y\"  Size=\"50,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"信息快报\"  />\r\n#set($x=$wmul*98)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"txl.png\" Location=\"$x,$y\" Size=\"50,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"通讯录\"   />\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Home_off.png\" BackColor=\"#808080\" ImagePressed=\"Home_on.png\">\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"xtsz.png\" Location=\"$x,$y\"  Size=\"50,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"系统设置\"  />\r\n \r\n      </TabPage>\r\n\r\n    </TabControl >\r\n\r\n    </MouseGesturePanel>\r\n#set($x=$xmul*60)\r\n#set($y=$hmul*270)\r\n#set($width=$wmul*60)\r\n    <Button Text=\"退出\" Location=\"$x,$y\" Width=\"$width\" Click=\"cmd:Exit()\"></Button>\r\n \r\n  </Body>\r\n</msc>\r\n#end\r\n</Response>', '45', '4838', 'wince');
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<Response>\r\n<msc>\r\n #foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<Head>\r\n         <Info Name=\"Code\">1</Info>\r\n         <Info Name=\"Reason\"></Info>\r\n        <Info Name=\"Session\">$Session</Info>\r\n         <Info Name=\"Comment\">$fields.get(\"STRYIJIAN\").value</Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n  <Body Text=\"Global:UserName\" Name=\"MainForm\" Size=\"$width,$height\">\r\n<Vars>\r\n    <Var Name=\"Local:UserName\" Value=\"Gaoxin\" />\r\n</Vars>\r\n<Actions>\r\n    <Action Name=\"actInsert\" Code=\"cmd:SetValue(Local:tbUser.Text,Global:UserName);sql:Insert into User (UserName,Pwd) values (\'{0}\',\'{1}\')#Global:UserName,Global:PASSWORD\" />\r\n<Action Name=\"actUpdate\" Code=\"cmd:SetValue(Local:tbUser.Text,Local:UserName);sql:Update User set UserName=\'{0}\' where UserName=\'{1}\'#Local:UserName,Global:UserName\" />\r\n<Action Name=\"actDel\" Code=\"cmd:SetValue(Local:tbUser.Text,);sql:Delete from User where UserName=\'{0}\'#Local:UserName\" />\r\n</Actions>\r\n     <ImageList Name=\"imagelist1\" ImageSize=\"32,32\">\r\n         <Image Source=\"contacts.bmp\"/>\r\n         <Image Source=\"calendar.bmp\"/>\r\n     </ImageList>   \r\n\r\n    <MouseGesturePanel Dock=\"Fill\"  eventR2L=\"cmd:Back()\"  >  \r\n#set($width=$wmul*240)\r\n \r\n    <TabControl ToolbarSize=\"$width,46\" BackColor=\"128,128,128\" BackgroundImage=\"Bkg_TabMenu.png\"  DockType=\"Bottom\"  Dock=\"Fill\"   ItemsAlignment=\"BottomRight\">\r\n\r\n      <TabPage BackColor=\"#808080\" ImageDefault=\"server:ftp://Administrator:IdealRD@132.159.156.163/Home_off.png\" ImagePressed=\"Home_on.png\">\r\n#set($x=$wmul*20)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"xxkb.png\" Location=\"$x,$y\"  Size=\"60,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"信息快报\" Click=\"url:c=InformationIndex_Gov\"  />\r\n#set($x=$wmul*88)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"gwbl.png\" Location=\"$x,$y\" Size=\"60,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\'公文办理-$fields.get(\"waitingDocment\").value\'  Click=\"url:c=DocumentList_Gov\"/>\r\n#set($x=$wmul*156)\r\n#set($y=$hmul*4)\r\n     <ImageButton ImageDefault=\"ldzs.png\" Location=\"$x,$y\" Size=\"60,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\'领导指示-$fields.get(\"leaderPoint\").value\' Click=\"url:c=PointNum_Gov\"/>  \r\n\r\n#set($x=$wmul*20)\r\n#set($y=$hmul*78)\r\n        <ImageButton ImageDefault=\"zscy.png\" Location=\"$x,$y\"  Size=\"60,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\'专送传阅-$fields.get(\"specailPassReading\").value\'  />\r\n#set($x=$wmul*88)\r\n#set($y=$hmul*78)\r\n        <ImageButton ImageDefault=\"tzgl.png\" Location=\"$x,$y\" Size=\"60,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\'通知管理-$fields.get(\"wantingNotice\").value\'  />\r\n#set($x=$wmul*156)\r\n#set($y=$hmul*78)\r\n     <ImageButton ImageDefault=\"xzxn.png\" Location=\"$x,$y\" Size=\"60,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"行政效能\"  />  \r\n\r\n \r\n\r\n#set($x=$wmul*20)\r\n#set($y=$hmul*152)\r\n        <ImageButton ImageDefault=\"rcap.png\" Location=\"$x,$y\"  Size=\"60,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"日程安排\"  />\r\n#set($x=$wmul*88)\r\n#set($y=$hmul*152)\r\n        <ImageButton ImageDefault=\"txl.png\" Location=\"$x,$y\" Size=\"60,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"通讯录\"   />\r\n#set($x=$wmul*156)\r\n#set($y=$hmul*152)\r\n     <ImageButton ImageDefault=\"xtsz.png\" Location=\"$x,$y\" Size=\"60,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"系统设置\"  />  \r\n\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Customer_off.png\"  BackColor=\"128,128,128\"  ImagePressed=\"Customer_on.png\">\r\n#set($x=$wmul*20)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"gwbl.png\" Location=\"$x,$y\"  Size=\"60,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\'公文办理-$fields.get(\"waitingDocment\").value\'  />\r\n#set($x=$wmul*88)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"ldzs.png\" Location=\"$x,$y\" Size=\"60,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\'领导指示-$fields.get(\"leaderPoint\").value\'   />\r\n#set($x=$wmul*156)\r\n#set($y=$hmul*4)\r\n     <ImageButton ImageDefault=\"zscy.png\" Location=\"$x,$y\" Size=\"60,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\'专送传阅-$fields.get(\"specailPassReading\").value\'  />  \r\n\r\n#set($x=$wmul*20)\r\n#set($y=$hmul*78)\r\n        <ImageButton ImageDefault=\"rcap.png\" Location=\"$x,$y\"  Size=\"60,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"日程安排\"  />\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Calendar_off.png\" BackColor=\"128,128,128\"   ImagePressed=\"Calendar_on.png\">\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"tzgl.png\" Location=\"$x,$y\"  Size=\"60,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\'通知管理-$fields.get(\"wantingNotice\").value\' />\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Order_off.png\" BackColor=\"128,128,128\"  ImagePressed=\"Order_on.png\">\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"xxkb.png\" Location=\"$x,$y\"  Size=\"60,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"信息快报\"  />\r\n#set($x=$wmul*98)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"txl.png\" Location=\"$x,$y\" Size=\"60,70\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"通讯录\"   />\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Home_off.png\" BackColor=\"#808080\" ImagePressed=\"Home_on.png\">\r\n#set($x=$wmul*30)\r\n#set($y=$hmul*4)\r\n        <ImageButton ImageDefault=\"xtsz.png\" Location=\"$x,$y\"  Size=\"60,70\"    ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"系统设置\"  />\r\n \r\n      </TabPage>\r\n\r\n    </TabControl >\r\n\r\n    </MouseGesturePanel>\r\n    <MenuItem Text=\"退出\" Click=\"cmd:Exit()\"></MenuItem>\r\n    <MenuItem Text=\"菜单\">\r\n	<MenuItem Text=\"Say Hello\" Click=\"cmd:ShowMessageBox(hello world)\"/>\r\n    </MenuItem>\r\n  </Body>\r\n</msc>\r\n#end\r\n</Response>', '45', '4839', 'wm');
INSERT INTO `function_prof` VALUES ('LOGIN_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n<!-- 登录是否成功的标志-->\r\n<xsl:variable name=\"flag\" select=\"/HTML/BODY/DIV[2]/DIV[1]/SPAN[2]\"/>\r\n<xsl:variable name=\"yes\">YES</xsl:variable>\r\n<xsl:variable name=\"no\">NO</xsl:variable>\r\n	<!-- 如果包括此节点，返回1-->\r\n	<xsl:choose>\r\n	<xsl:when test=\"string-length($flag) > 0\">\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>1</info>\r\n			<map key=\'Data\'>\r\n				<info key=\'1\'>信息快报</info>\r\n				<info key=\'2\'>公文办理</info>\r\n				<info key=\'3\'>领导指示</info>\r\n				<info key=\'4\'>专送传阅</info>\r\n				<info key=\'5\'>通知管理</info>\r\n				<info key=\'6\'>行政效能</info>\r\n				<info key=\'7\'>日程安排</info>\r\n				<info key=\'8\'>通讯录</info>\r\n				<info key=\'9\'>系统设置</info>\r\n			</map>\r\n		</map>\r\n	</xsl:when>	\r\n	<xsl:otherwise>\r\n	<!-- 如果不包括此节点，返回0-->	\r\n		<map key=\'Data\'>\r\n			<info key=\'Code\'>0</info>\r\n			<info key=\'Reason\'><xsl:value-of select=\"/HTML/BODY/TABLE/TR[2]/TD/TABLE/TR/TD/TABLE/TR/TD/FORM/TABLE/TR[1]/TD[2]/FONT/LI\"/></info>\r\n		</map>\r\n	</xsl:otherwise>\r\n	</xsl:choose>\r\n</xsl:template>\r\n</xsl:stylesheet>', '45', '4840', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##\r\n#set($ht_xsl=$appprof.get(\'REPAIR_XSL\'))\r\n#set( $ht_every_url = $Req_Fields.get(\'url\'))\r\n#set( $ht_para_url = $EVENT.envEvent.base64Decode($ht_every_url) )\r\n#set($list1 = $ht_para_url.split(\"[?]\"))	\r\n#set($value1=$EVENT.envEvent.getArrayIndex($list1,1))\r\n#set($list2 = $value1.split(\"[&]\"))	\r\n#set($value2=$EVENT.envEvent.getArrayIndex($list2,0))\r\n#set($list2 = $value2.split(\"[=]\"))	\r\n#set($value2=$EVENT.envEvent.getArrayIndex($list2,1))\r\n##概要地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/specialContentIfr1ForMu.do?specialContentId=$value2\" )\r\n##\r\n#set( $ht_method = \"GET\" )\r\n##\r\n##提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##附件地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/specialContentAttchmentbyMu.do?specialContentId=$value2\" )\r\n##提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_attch_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##记录地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/listAllCommentBySpFBmu.do?id=${value2}&type=1\" )\r\n#set( $ht_pass_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##\r\n##标准数据输出模版\r\n##\r\n##\r\n#set($outList = $ht_data.get(\'Data\').get(\'Info\').trim().split(\'-\\n+\'))	\r\n#set($attchList = $EVENT.envEvent.patternStr(\'.*?\\s{0,}(.+?)-(.+?)-(.+?)\\$.+?\\.(.+?)\\$\',$ht_attch_data.get(\'Data\').get(\'Info\')))	\r\n#set($passLog = $ht_pass_data.get(\'Data\').get(\'Info\').trim().split(\'[$]\'))\r\n\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n		<Info Name=\"Url\">$ht_every_url</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n##遍历概要信息\r\n	<Record MSGID=\"OutLine\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n			<Field Name=\"title\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,0).trim()</Field>\r\n			<Field Name=\"type\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,1).trim()</Field>\r\n			<Field Name=\"senduser\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,2).trim()</Field>\r\n			<Field Name=\"unit\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,4).trim()</Field>\r\n			<Field Name=\"date\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,5).trim()</Field>\r\n		</FieldList>	\r\n		<AttachList>\r\n		</AttachList>		\r\n	</Record>\r\n<Record MSGID=\"FileList\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>		\r\n		</FieldList>	\r\n		<AttachList>\r\n##输出附件的绝对URL地址及附件名称\r\n##输出附件的绝对URL地址及附件名称\r\n#foreach($key in $attchList)\r\n#set($key = $key.trim())\r\n#set($list4 = $key.split(\"[$]\"))\r\n#set($value4 = $EVENT.envEvent.getArrayIndex($list4,0))\r\n#set($v_l = $value4.indexOf(\"-\"))	\r\n#set($value_url = $value4.substring(0,$v_l))\r\n#set($v_l = $v_l + 1)\r\n#set($value_name = $value4.substring($v_l))\r\n			<Attach URL=\"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/$value_url\" format=\"\" category=\"\">$value_name</Attach>\r\n#end\r\n		</AttachList>		\r\n	</Record>	\r\n##传阅记录	\r\n	<Record MSGID=\"PassLog\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n#set($v_i =1)				\r\n#foreach($key in $passLog)\r\n#set($key=$key.trim())	\r\n#if($key.trim().length() > 0)		\r\n			<Field Name=\"$v_i\" type=\"string\" base64=\"0\">$key.replaceAll(\"[$]\", \" \")</Field>\r\n#set($v_i = $v_i + 1)				\r\n#end	\r\n#end				\r\n		</FieldList>	\r\n		<AttachList>\r\n		</AttachList>		\r\n	</Record>	\r\n	\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '61', '4857', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '61', '4858', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##指示内容\r\n#set($Back=${dataprops.get(\'back\')})\r\n#set($Next=${dataprops.get(\'next\')})\r\n#set($PageInfo=${dataprops.get(\'pageinfo\')})\r\n#set($PageCount=${dataprops.get(\'endPageNum\')})\r\n \r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"领导指示内容\" Size=\"$width,$height\">\r\n	<ImageList Name=\"imagelist1\">\r\n	    <Image Source=\"pic01.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventR2L=\"cmd:Back()\" Dock=\"Fill\">\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*244)\r\n\r\n<TabControl Name=\"tab1\" Size=\"225,250\" ToolbarSize=\"225,20\"  Location=\"5,10\"   BackColor=\"255,255,255\"  DockType=\"Top\"  ItemsAlignment=\"TopLeft\">\r\n       <TabPage ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"概况\">\r\n#foreach($record in $records)\r\n#if(${record.MSGID}==\"OutLine\")\r\n\r\n	#set($fields = $record.fields)\r\n\r\n#set($lineHeight = 25)\r\n#set($$lbWidth = 220)\r\n#set($y = 5)\r\n#set($text=${fields.get(\'title\').value})\r\n#if($text.length()>10)\r\n#set($text=$text.toString().substring(0,10))\r\n#set($text=$text+\"...\")\r\n#end\r\n  <Label Name=\"label1\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"标题:$text\"/>\r\n #set($y = $y+$lineHeight)\r\n    \r\n<Label Name=\"label2\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"信息类别:${fields.get(\'type\').value}\"/>\r\n #set($y = $y+$lineHeight)\r\n<Label Name=\"label3\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"发布人:${fields.get(\'senduser\').value}\"/>\r\n #set($y = $y+$lineHeight)\r\n<Label Name=\"label4\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"发布单位:${fields.get(\'unit\').value}\"/>\r\n #set($y = $y+$lineHeight)\r\n<Label Name=\"label5\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"发布日期:${fields.get(\'date\').value}\"/>\r\n #set($y = $y+$lineHeight)\r\n#end\r\n#end\r\n</TabPage>\r\n              <TabPage ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"附件\">\r\n#set($y = 5)\r\n#foreach($record in $records)\r\n#if(${record.MSGID}==\"FileList\")\r\n#set($fields = $record.fields)\r\n\r\n  <Attach  Location=\"5,$y\"  Name=\"attachs1\" Width=\"220\" Source=\"\r\n        #foreach($attach in $record.attachs.get(\'attachs\'))\r\n        ${attach.get(\"Value\")}|${attach.get(\"URL\")},\r\n        #end\r\n        \"/>\r\n#set($y =$y+25)\r\n#end\r\n#end\r\n</TabPage>\r\n               <TabPage  ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"处理\">\r\n</TabPage>\r\n              <TabPage  ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"记录\">\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*244)\r\n		<ListView Name=\"DocList\" Location=\"0,0\" Size=\"$width,$height\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\">\r\n#set($width=$wmul*225)\r\n			<ColumnHeader Width=\"$width\" />\r\n	#foreach($record in $records)\r\n                #if(${record.MSGID}==\"PassLog\")\r\n	#set($fields = $record.fields)\r\n                #foreach($field in $record.fieldList)\r\n	 \r\n 			<ListViewItem Text=\"${field.value}\" ImageIndex=\"0\" />\r\n	#end\r\n                #end\r\n #end\r\n		</ListView>\r\n\r\n\r\n \r\n</TabPage>\r\n        </TabControl>\r\n</MouseGesturePanel>\r\n<MenuItem Text=\"返回\" Click=\"cmd:Back()\"></MenuItem>\r\n\r\n</Body>\r\n</msc>\r\n</Response>', '61', '4859', 'wm');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##\r\n#set($ht_xsl=$appprof.get(\'REPAIR_XSL\'))\r\n#set( $ht_every_url = $Req_Fields.get(\'url\'))\r\n#set( $ht_para_url = $EVENT.envEvent.base64Decode($ht_every_url) )\r\n#set($list11 = $ht_para_url.split(\"[?]\"))	\r\n#set($value11=$EVENT.envEvent.getArrayIndex($list11,1))\r\n##概要地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/mobileOA/documentInfo.jsp?$value11\" )\r\n##\r\n#set( $ht_method = \"GET\" )\r\n##\r\n##提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##附件地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/mobileOA/documentInfoAttachment.jsp?$value11\" )\r\n##提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_attch_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##概要地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/mobileOA/documentInfoMsgU.jsp?$value11\" )\r\n#set( $ht_pass_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##\r\n##标准数据输出模版\r\n##\r\n##\r\n#set($outList = $ht_data.get(\'Data\').get(\'Info\').trim().split(\"[-][ ]\"))	\r\n#set($attchList = $ht_attch_data.get(\'Data\').get(\'Info\').trim().split(\"[$]\"))	\r\n#set($passLog = $ht_pass_data.get(\'Data\').get(\'Info\').trim().split(\'\\$\\n+\\s+\'))\r\n\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n		<Info Name=\"Url\">$ht_every_url</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n##遍历概要信息\r\n	<Record MSGID=\"OutLine\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n			<Field Name=\"title\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,0)</Field>\r\n			<Field Name=\"gongwentype\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,1)</Field>\r\n			<Field Name=\"jinji\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,2)</Field>\r\n			<Field Name=\"laiwendept\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,3)</Field>\r\n			<Field Name=\"wenhao\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,4)</Field>\r\n			<Field Name=\"qianfaren\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,5)</Field>\r\n			<Field Name=\"zhusongdept\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,6)</Field>\r\n			<Field Name=\"caosongdept\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,7)</Field>			\r\n		</FieldList>	\r\n		<AttachList>\r\n		</AttachList>		\r\n	</Record>\r\n	<Record MSGID=\"FileList\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>		\r\n		</FieldList>	\r\n		<AttachList>\r\n##输出附件的绝对URL地址及附件名称\r\n#foreach($key in $attchList)\r\n#set($bList = $key.split(\"[-][/]\"))\r\n#set($bListUrl = $EVENT.envEvent.getArrayIndex($bList,1))\r\n#set($bListName = $bListUrl.split(\"[?]\"))\r\n			<Attach URL=\"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/mobileOA/downloadFile_mobile.jsp?$EVENT.envEvent.getArrayIndex($bListName,1)\" format=\"\" category=\"\">$EVENT.envEvent.getArrayIndex($bList,0)</Attach>\r\n#end\r\n		</AttachList>		\r\n	</Record>	\r\n##传阅记录	\r\n\r\n	<Record MSGID=\"PassLog\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n#set($v_i =1)			\r\n#foreach($key in $passLog)\r\n#set($key=$key.trim())	\r\n#if($key.trim().length() > 0)			\r\n			<Field Name=\"$v_i\" type=\"string\" base64=\"0\">$key.replaceAll(\"[$]\", \" \")</Field>\r\n#set($v_i = $v_i + 1)			\r\n#end	\r\n#end				\r\n		</FieldList>	\r\n		<AttachList>\r\n		</AttachList>		\r\n	</Record>	\r\n	\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '58', '4879', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '58', '4880', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##公文概要\r\n#set($Back=${dataprops.get(\'back\')})\r\n#set($Next=${dataprops.get(\'next\')})\r\n#set($PageInfo=${dataprops.get(\'pageinfo\')})\r\n#set($PageCount=${dataprops.get(\'endPageNum\')})\r\n \r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"公文概要\" Size=\"$width,$height\">\r\n	<ImageList Name=\"imagelist1\">\r\n	    <Image Source=\"pic01.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventR2L=\"cmd:Back()\" Dock=\"Fill\">\r\n\r\n#set($width=$wmul*225)\r\n#set($height=$hmul*250)\r\n\r\n<TabControl Name=\"tab1\" Size=\"$width,$height\" ToolbarSize=\"225,20\"  Location=\"5,10\"   BackColor=\"255,255,255\"  DockType=\"Top\"  ItemsAlignment=\"TopLeft\">\r\n       <TabPage ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"概况\">\r\n#foreach($record in $records)\r\n#if(${record.MSGID}==\"OutLine\")\r\n\r\n	#set($fields = $record.fields)\r\n\r\n#set($lineHeight = 25)\r\n#set($$lbWidth = 220)\r\n#set($y = 5)\r\n#set($text=${fields.get(\'title\').value})\r\n#if($text.length()>10)\r\n#set($text=$text.toString().substring(0,10))\r\n#set($text=$text+\"...\")\r\n#end\r\n  <Label Name=\"label1\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"公文标题:$text\"/>\r\n #set($y = $y+$lineHeight)\r\n    \r\n<Label Name=\"label2\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"公文类型:${fields.get(\'gongwentype\').value}\"/>\r\n #set($y = $y+$lineHeight)\r\n<Label Name=\"label3\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"紧急程度:${fields.get(\'jinji\').value}\"/>\r\n #set($y = $y+$lineHeight)\r\n<Label Name=\"label4\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"来文单位:${fields.get(\'laiwendept\').value}\"/>\r\n #set($y = $y+$lineHeight)\r\n<Label Name=\"label5\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"文号:${fields.get(\'wenhao\').value}\"/>\r\n #set($y = $y+$lineHeight)\r\n<Label Name=\"label6\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"签发人:${fields.get(\'qianfaren\').value}\"/>\r\n #set($y = $y+$lineHeight)\r\n<Label Name=\"label7\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"主送单位:${fields.get(\'zhusongdept\').value}\"/>\r\n #set($y = $y+$lineHeight)\r\n<Label Name=\"label8\" Location=\"5,$y\" Width=\"$lbWidth\"  Text=\"抄送单位:${fields.get(\'caosongdept\').value}\"/>\r\n#end\r\n#end\r\n</TabPage>\r\n              <TabPage ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"附件\">\r\n#set($y = 5)\r\n#foreach($record in $records)\r\n#if(${record.MSGID}==\"FileList\")\r\n#set($fields = $record.fields)\r\n\r\n  <Attach  Location=\"5,$y\"  Name=\"attachs1\" Width=\"220\" Source=\"\r\n        #foreach($attach in $record.attachs.get(\'attachs\'))\r\n        ${attach.get(\"Value\")}|${attach.get(\"URL\")},\r\n        #end\r\n        \"/>\r\n#set($y =$y+25)\r\n#end\r\n#end\r\n</TabPage>\r\n               <TabPage  ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"处理\">\r\n#set($y = 5)\r\n<Label Text=\"意见填写:\" Location=\"5,$y\" Size=\"60,23\"/>\r\n#set($y = $y+25)\r\n#set($width=$wmul*220)\r\n#set($height=$hmul*160)\r\n<TextBox Name=\"tbOpinion\"  Location=\"5,$y\" Size=\"$width,$height\" Multiline=\"True\"/>\r\n#set($y = $y+$height+5)\r\n#set($x = $wmul*90)\r\n#set($width=$wmul*60)\r\n<Button Text=\"确定\" Location=\"$x,$y\" Width=\"$width\" Click=\"url:c=DocumentDeal_Gov#opinion=Local:tbOpinion.Text\"/>\r\n</TabPage>\r\n              <TabPage  ImageDefault=\"notice_off.png\" ImagePressed=\"notice_on.png\" Text=\"记录\">\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*244)\r\n		<ListView Name=\"DocList\" Location=\"0,0\" Size=\"$width,$height\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\">\r\n#set($width=$wmul*225)\r\n			<ColumnHeader Width=\"$width\" />\r\n	#foreach($record in $records)\r\n                #if(${record.MSGID}==\"PassLog\")\r\n	#set($fields = $record.fields)\r\n                #foreach($field in $record.fieldList)\r\n	 \r\n 			<ListViewItem Text=\"${field.value}\" ImageIndex=\"0\" />\r\n	#end\r\n                #end\r\n #end\r\n		</ListView>\r\n\r\n\r\n \r\n</TabPage>\r\n        </TabControl>\r\n</MouseGesturePanel>\r\n<MenuItem Text=\"返回\" Click=\"cmd:Back()\"></MenuItem>\r\n\r\n</Body>\r\n</msc>\r\n</Response>', '58', '4881', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '63', '4882', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##\r\n#set($ht_xsl=$funcprof.get(\'POINT_DEAL_RESULT_XSL\'))\r\n#set( $ht_para_opi = $Req_Fields.get(\'opinion\'))\r\n#set( $ht_para_id = $Req_Fields.get(\'id\'))\r\n#set( $ht_para_userid = $Req_Fields.get(\'userIds\'))\r\n#set( $ht_para_username = $Req_Fields.get(\'userNames\'))\r\n##概要地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/addPostil.do\" )\r\n##\r\n#set( $ht_url = \"${ht_url}?feedBackType=1&type=1&optType=receive&attachmentIds=\")\r\n#set( $ht_method = \"POST\" )\r\n#set($ht_post_para =\"id=ht_para_id,userIds=ht_para_userid,userNames=ht_para_username,commentBody=ht_para_opi\") \r\n##\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,$ht_post_para,$ht_url,$ht_xsl,$CONTEXT) )\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n				</DataPropList >			\r\n			</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '63', '4883', null);
INSERT INTO `function_prof` VALUES ('POINT_DEAL_RESULT_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n<!-- 登录是否成功的标志-->\r\n<map key=\'Data\'>\r\n	<!-- 如果包括此节点，返回1-->\r\n	<xsl:choose>\r\n	<xsl:when test=\"count(//TEXTAREA[@name=\'commentBody\']) > 0\">\r\n			<info key=\'Code\'>1</info>\r\n	</xsl:when>	\r\n	<xsl:otherwise>\r\n			<info key=\'Code\'>0</info>\r\n	</xsl:otherwise>\r\n	</xsl:choose>\r\n</map>	\r\n</xsl:template>\r\n</xsl:stylesheet>', '63', '4884', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', 'aa', '63', '4885', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '55', '4886', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##\r\n#set($ht_xsl=$funcprof.get(\'DOCUMENT_DEAL_RESULT_XSL\'))\r\n#set( $ht_para_opi = $Req_Fields.get(\'opinion\'))\r\n##概要地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/document/ifr_worknode_confirm.jsp?isMobile=true\" )\r\n##\r\n#set( $ht_url = \"${ht_url}&NDOCID=70701&NDOCSORTID=1&NPROCID=10&NMSGID=0&DEPTID=&ACT=&DCWDATE=&CJJCD=&CMMDJ=&CFWDW=&NFWDW=&CFWZH=&CQFR=&CBT=&CFBT=&CZTC=&CZSJG=&NZSJG=&CCSJG=&NCSJG=&DOCUCODE=&CSFGK=&TEMPZSJG=&TEMPCSJG=&TEMPJG=&TITCODE=0&CWENHAO=&changyongyu=&NEXTUSERNAME=&NEXTUID=&selAction=\")\r\n#set( $ht_method = \"POST\" )\r\n#set($ht_post_para =\"CMSG=ht_para_opi\") \r\n##\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,$ht_post_para,$ht_url,$ht_xsl,$CONTEXT) )\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n		<![CDATA[\r\n			<Data type=\"Form\">\r\n				<DataPropList>\r\n				</DataPropList >			\r\n			</Data>\r\n		]]>\r\n	</ResponseData>\r\n</Response>', '55', '4887', null);
INSERT INTO `function_prof` VALUES ('DOCUMENT_DEAL_RESULT_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version = \'1.0\' xmlns:xsl=\'http://www.w3.org/1999/XSL/Transform\'>\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n<xsl:template match=\"/\"> \r\n<!-- 登录是否成功的标志-->\r\n<map key=\'Data\'>\r\n	<!-- 如果包括此节点，返回1-->\r\n	<xsl:choose>\r\n	<xsl:when test=\"contains(/HTML/HEAD/SCRIPT,\'top.window.opener.location.reload\')\">\r\n			<info key=\'Code\'>1</info>\r\n	</xsl:when>	\r\n	<xsl:otherwise>\r\n			<info key=\'Code\'>0</info>\r\n	</xsl:otherwise>\r\n	</xsl:choose>\r\n</map>	\r\n</xsl:template>\r\n</xsl:stylesheet>', '55', '4888', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '<TabControl Name=\"tab1\" ToolbarSize=\"240,46\" BackColor=\"128,128,128\" BackgroundImage=\"Bkg_TabMenu.png\"  DockType=\"Top\"  ItemsAlignment=\"TopLeft\">\r\n       <TabPage BackColor=\"128,128,128\" ImageDefault=\"Home_off.png\" ImagePressed=\"Home_on.png\">\r\n       </TabPage>\r\n       <TabPage BackColor=\"128,128,128\" ImageDefault=\"Home_off.png\" ImagePressed=\"Home_on.png\">\r\n       </TabPage>\r\n       <TabPage BackColor=\"128,128,128\" ImageDefault=\"Home_off.png\" ImagePressed=\"Home_on.png\">\r\n       </TabPage>\r\n       <TabPage BackColor=\"128,128,128\" ImageDefault=\"Home_off.png\" ImagePressed=\"Home_on.png\">\r\n       </TabPage> \r\n</Tabcontrol>\r\n\r\n\r\n\r\n\r\n\r\n  >\r\n      <TabPage ImageDefault=\"Customer_off.png\" BackColor=\"128,128,128\"  ImagePressed=\"Customer_on.png\">\r\n        <ImageButton ImageDefault=\"calendar.bmp\" Location=\"36,5\" Size=\"32,32\" action=\"action1\"/>\r\n        <ImageButton ImageDefault=\"contacts.bmp\" Location=\"104,5\" Size=\"32,32\"/>\r\n      </TabPage>\r\n</TabControl>\r\n\r\n<Response>\r\n<msc>\r\n #foreach($record in $records)\r\n#set($fields = $record.fields)\r\n<Head>\r\n         <Info Name=\"Code\">1</Info>\r\n         <Info Name=\"Reason\"></Info>\r\n        <Info Name=\"Session\">$Session</Info>\r\n         <Info Name=\"Comment\">$fields.get(\"STRYIJIAN\").value</Info>\r\n</Head>\r\n  <Body Text=\"Global:UserName\" Name=\"MainForm\" >\r\n<Vars>\r\n    <Var Name=\"Local:UserName\" Value=\"Gaoxin\"/>\r\n</Vars>\r\n<Actions>\r\n    <Action Name=\"actInsert\" Code=\"cmd:SetValue(Local:tbUser.Text,Global:UserName);sql:Insert into User (UserName,Pwd) values (\'{0}\',\'{1}\')#Global:UserName,Global:PASSWORD\" />\r\n<Action Name=\"actUpdate\" Code=\"cmd:SetValue(Local:tbUser.Text,Local:UserName);sql:Update User set UserName=\'{0}\' where UserName=\'{1}\'#Local:UserName,Global:UserName\" />\r\n<Action Name=\"actDel\" Code=\"cmd:SetValue(Local:tbUser.Text,);sql:Delete from User where UserName=\'{0}\'#Local:UserName\" />\r\n</Actions>\r\n     <ImageList Name=\"imagelist1\" ImageSize=\"32,32\">\r\n         <Image Source=\"contacts.bmp\"/>\r\n         <Image Source=\"calendar.bmp\"/>\r\n     </ImageList>   \r\n    <MouseGesturePanel Dock=\"Fill\"  eventR2L=\"cmd:Back()\"  >  \r\n\r\n    <TabControl ToolbarSize=\"240,46\" BackColor=\"128,128,128\" BackgroundImage=\"Bkg_TabMenu.png\"  DockType=\"Bottom\"  Dock=\"Fill\"   ItemsAlignment=\"BottomRight\">\r\n\r\n      <TabPage BackColor=\"128,128,128\" ImageDefault=\"Home_off.png\" ImagePressed=\"Home_on.png\">\r\n\r\n        <ImageButton ImageDefault=\"customer.bmp\" Location=\"36,5\"  Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"打电话\" Click=\"cmd:Telephone(13816383550)\" />\r\n        <ImageButton ImageDefault=\"products.bmp\" Location=\"104,5\" Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"发短信\"   Click=\"cmd:Sms(13816383550)\"/>    \r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Customer_off.png\"  BackColor=\"128,128,128\"  ImagePressed=\"Customer_on.png\">\r\n        <ImageButton ImageDefault=\"calendar.bmp\" Location=\"36,5\" Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"IE\" Click=\"cmd:RunEXE(iexplore.exe,g.cn)\"  />\r\n        <ImageButton ImageDefault=\"contacts.bmp\" Location=\"104,5\" Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\"  TextDefault=\"在办箱\" Click=\"url:c=TaskBoxList#Cur=#CurType=0#target=_blank\"  />\r\n        <ImageButton ImageDefault=\"notes.bmp\" Location=\"172,5\"  Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"待办箱\"  Click=\"url:c=TaskBoxList#Cur=#CurType=1#target=_blank\" />\r\n        <ImageButton ImageDefault=\"tasts.bmp\" Location=\"30,60\"  Size=\"48,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"公告列表\"  Click=\"url:c=BulletinList#Cur=#target=_blank\"/>\r\n        <ImageButton ImageDefault=\"mail.bmp\" Location=\"98,60\" Size=\"48,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"邮件列表\" Click=\"url:c=MailList#target=_blank\"/>\r\n        <ImageButton ImageDefault=\"contacts.bmp\" Location=\"160,60\" Size=\"60,48\" ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"公司通讯录\" Click=\"url:c=AddListCompany#Cur=#From=txl#target=_blank\"/>\r\n        <ImageButton ImageDefault=\"mail.bmp\" Location=\"36,115\" Size=\"36,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"写邮件\" Click=\"url:c=MailIndex#MailId=#EnterPoint=MainPage#target=_blank\"/>\r\n        <ImageButton ImageDefault=\"mail.bmp\" Location=\"92,115\" Size=\"60,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"会议室查询\" Click=\"url:c=MeetingRoomDateQuery#target=_blank\"/>\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Calendar_off.png\" BackColor=\"128,128,128\"   ImagePressed=\"Calendar_on.png\">\r\n        <ImageButton ImageDefault=\"fileexplorer.bmp\" Location=\"36,5\"  Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"插入\" Click=\"act:actInsert\"/>\r\n        <ImageButton ImageDefault=\"contacts.bmp\" Location=\"104,5\"   Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"更新\"  Click=\"act:actUpdate\"/>\r\n        <ImageButton ImageDefault=\"notes.bmp\" Location=\"172,5\"    Size=\"36,48\"  ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"删除\"  Click=\"act:actDel\" />\r\n        <TextBox Name=\"tbUser\" Location=\"36,60\"  Size=\"100,24\" Text=\"sql:Select UserName from User where Pwd=\'{0}\'#Global:PASSWORD\"/>\r\n       <DateTimePicker Value=\"2001-05-09\" Location=\"36,90\"  Size=\"100,24\"/>\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Order_off.png\" BackColor=\"128,128,128\"  ImagePressed=\"Order_on.png\">\r\n         <AdvancedList Name=\"list1\" Location=\"0,0\" ShowHeader=\"True\" Size=\"240,110\" CellClick=\"cmd:ShowMessageBox(333333)\">\r\n	<HeaderRow   TemplateIndex=\"2\"   StringData=\"co1,col2\"/>\r\n	<AdvancedRow  SelectedTemplateIndex=\"1\"  StringData=\"11,222\" Click=\"cmd:ShowMessageBox(111111)\"/>\r\n	<AdvancedRow  SelectedTemplateIndex=\"1\"  StringData=\"gg,333\" Click=\"cmd:ShowMessageBox(222222)\"/>\r\n	<AdvancedRow  SelectedTemplateIndex=\"1\"  StringData=\"coco,444\"/>\r\n \r\n	<RowTemplate Height=\"24\">\r\n	<ImageCell    ImageList=\"Local:imagelist1\" ImageIndex=\"0\"  Bounds=\"0,0,-1,24\"/>\r\n	<TextCell Bounds=\"48,0,-1,16\"/>\r\n	</RowTemplate>\r\n	<RowTemplate Height=\"32\" BackColor=\"#FDAADD\">\r\n	<TextCell Bounds=\"0,0,-1,16\"/>\r\n	<TextCell Bounds=\"0,16,-1,16\"/>\r\n	</RowTemplate>\r\n	<RowTemplate Height=\"24\" BackColor=\"#ABCDEF\">\r\n	<TextCell Bounds=\"0,0,-1,16\"/>\r\n	<TextCell Bounds=\"48,0,-1,16\"/>\r\n	</RowTemplate>\r\n         </AdvancedList>\r\n         <TextBox Name=\"tb1\"  Location=\"0,112\" Size=\"100,24\"/>\r\n        <Button Name=\"button1\" Text=\"获取Samrt值\" Click=\"cmd:SetValue(Local:tb1.Text,Local:grid1.SelectedValue)\" Location=\"110,112\" Size=\"80,22\"/> \r\n        <SmartGrid Name=\"grid1\"   Location=\"0,0\" Size=\"240,100\">\r\n	<SmartRow Height=\"16\" StringData=\"eric,222\" CheckValue=\"eric:222\" Click=\"cmd:SetValue(Local:tb1.Text,222)\"/>\r\n	<SmartRow Height=\"16\" StringData=\"gg,4444\" CheckValue=\"gg:4444\" Click=\"cmd:SetValue(Local:tb1.Text,4444)\"/>\r\n	<SmartRow Height=\"16\" StringData=\"coco,555\" CheckValue=\"coco:555\" Click=\"cmd:SetValue(Local:tb1.Text,555)\"/>\r\n	<Column Name=\"col1\" Width=\"110\"   HeaderText=\"col1\"/>\r\n	<Column Name=\"col2\" Width=\"125\"   HeaderText=\"col2\"/>\r\n         </SmartGrid>\r\n      </TabPage>\r\n      <TabPage ImageDefault=\"Home_off.png\" BackColor=\"#808080\" ImagePressed=\"Home_on.png\">\r\n        <ImageButton ImageDefault=\"customer.bmp\" Location=\"36,5\"  Size=\"36,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"设置\"  Click=\"cmd:ShowSetting()\" />\r\n        <ImageButton ImageDefault=\"products.bmp\" Location=\"98,5\" Size=\"48,48\"   ImageAlignment=\"TopCenter\" TextAlignment=\"BottomCenter\" TextDefault=\"下载管理\"    Click=\"cmd:ShowDownloadManager()\"/>    \r\n      </TabPage>\r\n\r\n    </TabControl >\r\n\r\n    </MouseGesturePanel>\r\n    <MenuItem Text=\"退出\" Click=\"cmd:Exit()\"></MenuItem>\r\n    <MenuItem Text=\"菜单\">\r\n	<MenuItem Text=\"Say Hello\" Click=\"cmd:ShowMessageBox(hello world)\"/>\r\n    </MenuItem>\r\n  </Body>\r\n</msc>\r\n#end\r\n</Response>', '55', '4889', 'wm');
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '##\r\n#set($ht_xsl=$appprof.get(\'REPAIR_XSL\'))\r\n##url地址\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}/indexLeaderPointTotalAction.do\" )\r\n##\r\n#set( $ht_method = \"GET\" )\r\n##\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##\r\n#set($outList = $ht_data.get(\'Data\').get(\'Info\').trim().split(\"[-]\"))	\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n	</DataPropList >\r\n##遍历输出信息\r\n	<Record MSGID=\"\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n			<Field Name=\"pionting\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,0)</Field>\r\n			<Field Name=\"feedback\" type=\"string\" base64=\"0\">$EVENT.envEvent.getArrayIndex($outList,1)</Field>			\r\n		</FieldList>	\r\n		<AttachList>\r\n		</AttachList>		\r\n	</Record>	\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '59', '4890', null);
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '59', '4891', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##指示数目\r\n \r\n \r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"收到的指示\" Size=\"$width,$height\">\r\n	<ImageList Name=\"imagelist1\">\r\n	 \r\n		<Image Source=\"pic01.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventR2L=\"cmd:Back()\" Dock=\"Fill\">\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*244)\r\n		<ListView Name=\"DocList\" Location=\"0,0\" Size=\"$width,$height\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\">\r\n#set($width=$wmul*225)\r\n			<ColumnHeader Width=\"$width\" />\r\n	#foreach($record in $records)\r\n\r\n	#set($fields = $record.fields)\r\n\r\n	 \r\n 			 <ListViewItem Text=\"领导指示(${record.fields.get(\'pionting\').value})\" ImageIndex=\"0\"  Click=\"url:c=PointList_Gov#type=0#pageCur=\" />\r\n <ListViewItem Text=\"指示反馈(${record.fields.get(\'feedback\').value})\" ImageIndex=\"0\" Click=\"url:c=PointList_Gov#type=1#pageCur=\"   />\r\n\r\n	 \r\n 	#end\r\n		</ListView>\r\n</MouseGesturePanel>\r\n <MenuItem Text=\"返回\" Click=\"cmd:Back()\"></MenuItem>\r\n 	 	 </Body>\r\n</msc>\r\n</Response>', '59', '4892', 'wm');
INSERT INTO `function_prof` VALUES ('INVOKE_TYPE', 'BS_INVOKE', '60', '4893', null);
INSERT INTO `function_prof` VALUES ('DATA_TEMPLATE', '#set($ht_xsl=$funcprof.get(\'POINT_LIST_XSL\'))\r\n#set( $ht_para_type = $Req_Fields.get(\'type\') )\r\n#set( $ht_para_page = $Req_Fields.get(\'pageCur\') )\r\n#set( $ht_url = \"${unitprof.get(\'BS_SYSTEM_DOMAIN\')}${unitprof.get(\'BS_SYSTEM_DIR\')}\")\r\n#if($ht_para_type == \"1\")\r\n#set( $ht_url = \"${ht_url}/listNewSpecialContentFeedback.do?\")\r\n#else\r\n#set( $ht_url = \"${ht_url}/listNewSpecialContent.do?\")\r\n#end\r\n#set($ht_userid=$EVENT.bsEvent.getUserData(\'Login_Gov\',\'sysUserID\',$CONTEXT))\r\n#if($ht_para_page.length() == 0)\r\n#set( $ht_url = \"${ht_url}specialContentType=2&sysUserID=${ht_userid}\" )\r\n#else\r\n#set( $ht_url = \"${ht_url}${EVENT.envEvent.base64Decode($ht_para_page)}\" )\r\n#end\r\n#set( $ht_para_id = $Req_Fields.get(\'categoryId\') )\r\n##\r\n#set( $ht_method = \"GET\" )\r\n##\r\n##触发事件，提交数据到BS页面，将分析的数据放入对象fundata\r\n#set( $ht_data = $EVENT.bsEvent.getData($ht_method,\'\',$ht_url,$ht_xsl,$CONTEXT) )\r\n##\r\n#macro(pageInfo $key $value)\r\n#if($value.length() > 0)\r\n		<Item Name=\"$key\">$EVENT.envEvent.base64Encode($value)</Item>\r\n#else\r\n		<Item Name=\"$key\"></Item>\r\n#end\r\n#end\r\n##标准数据输出模版\r\n<Response>\r\n	<ResponseInfos>\r\n		<Info Name=\"Code\">1</Info>\r\n		<Info Name=\"Reason\">正常</Info>\r\n	</ResponseInfos>\r\n	<ResponseData>\r\n<![CDATA[\r\n<Data type=\"Form\">\r\n	<DataPropList>\r\n#pageInfo(\"next\" $ht_data.get(\'nextPageNum\'))\r\n#pageInfo(\"back\" $ht_data.get(\'frontPageNum\'))\r\n#pageInfo(\"endnum\" $ht_data.get(\'endPageNum\'))\r\n		<Item Name=\"pageinfo\">$!ht_data.get(\'page_info\').replaceAll(\"&nbsp;\", \" \").trim()</Item>\r\n	</DataPropList >\r\n##遍历输出信息\r\n#set($TRecords = $ht_data.get(\'Row\'))\r\n#foreach($tkey in $TRecords.keySet())	\r\n	<Record MSGID=\"$tkey\" KeyString=\"\">\r\n		<RecordPropList>\r\n		</RecordPropList>\r\n		<FieldList>\r\n#set($TRecord =$TRecords.get($tkey))			\r\n#foreach($key in $TRecord.keySet())\r\n#if($key == \"url\")\r\n#set($list11 = ${TRecord.get($key).split(\"[\']\")})	\r\n#set($value11=$EVENT.envEvent.getArrayIndex($list11,1))\r\n			<Field Name=\"$key\" type=\"string\" base64=\"0\">$EVENT.envEvent.base64Encode($value11)</Field>\r\n#elseif($key == \"title\")\r\n			<Field Name=\"$key\" type=\"string\" base64=\"0\">$EVENT.envEvent.escapeXMLEntity(${TRecord.get($key)})</Field>	\r\n#else\r\n			<Field Name=\"$key\" type=\"string\" base64=\"0\">${TRecord.get($key)}</Field>				\r\n#end				\r\n#end			\r\n		</FieldList>			\r\n	</Record>\r\n#end		\r\n</Data>\r\n]]>\r\n	</ResponseData>\r\n</Response>', '60', '4894', null);
INSERT INTO `function_prof` VALUES ('POINT_LIST_XSL', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\r\n	<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"/>\r\n	<xsl:template match=\"/\">\r\n		<map key=\"Data\">\r\n			<info key=\"Code\">1</info>\r\n			<info key=\"page_info\">\r\n				<xsl:value-of select=\"normalize-space(//FORM/TABLE/TR/TD/text())\"/>\r\n			</info>\r\n			<xsl:apply-templates select=\"//FORM/TABLE/TR/TD/A\"/>\r\n			<map key=\"Row\">\r\n				<xsl:apply-templates select=\"//TABLE/TR/TD/TABLE/TR/TD/DIV/TABLE/TR\"/>\r\n			</map>\r\n		</map>\r\n	</xsl:template>\r\n	<!-- 翻页信息 -->\r\n	<xsl:template match=\"//FORM/TABLE/TR/TD/A\">\r\n		<xsl:choose>\r\n			<xsl:when test=\"text() = \'上一页\'\">\r\n				<xsl:element name=\"info\">\r\n					<xsl:attribute name=\"key\">frontPageNum</xsl:attribute>\r\n					<xsl:value-of select=\"@href\"/>\r\n				</xsl:element>\r\n			</xsl:when>\r\n			<xsl:when test=\"text() = \'下一页\'\">\r\n				<xsl:element name=\"info\">\r\n					<xsl:attribute name=\"key\">nextPageNum</xsl:attribute>\r\n					<xsl:value-of select=\"@href\"/>\r\n				</xsl:element>\r\n			</xsl:when>\r\n			<xsl:when test=\"text() = \'末页\'\">\r\n				<xsl:element name=\"info\">\r\n					<xsl:attribute name=\"key\">endPageNum</xsl:attribute>\r\n					<xsl:value-of select=\"@href\"/>\r\n				</xsl:element>\r\n			</xsl:when>\r\n		</xsl:choose>\r\n	</xsl:template>\r\n	<xsl:template match=\"//TABLE/TR/TD/TABLE/TR/TD/DIV/TABLE/TR\">\r\n		<xsl:element name=\"map\">\r\n			<xsl:attribute name=\"key\">\r\n				<xsl:value-of select=\"position()\"/>\r\n			</xsl:attribute>\r\n			<info key=\"title\">\r\n				<xsl:value-of select=\"normalize-space(TD[2]/A/text())\"/>\r\n			</info>\r\n			<info key=\"url\">\r\n				<xsl:value-of select=\"normalize-space(TD[2]/A/@href)\"/>\r\n			</info>\r\n			<info key=\"time\">\r\n				<xsl:value-of select=\"normalize-space(TD[2]/A/SPAN/text())\"/>\r\n			</info>\r\n		</xsl:element>\r\n	</xsl:template>\r\n</xsl:stylesheet>', '60', '4895', null);
INSERT INTO `function_prof` VALUES ('MOBILE_TEMPLATE', '##指示列表\r\n#set($Back=${dataprops.get(\'back\')})\r\n#set($Next=${dataprops.get(\'next\')})\r\n#set($PageInfo=${dataprops.get(\'pageinfo\')})\r\n#set($PageCount=${dataprops.get(\'endPageNum\')})\r\n \r\n<Response>\r\n<msc>\r\n <Head>\r\n	<Info Name=\"Code\">1</Info>\r\n	<Info Name=\"Reason\"></Info>\r\n</Head>\r\n\r\n#set($hmul=$hmultiple/320)\r\n#set($wmul=$wmultiple/240)\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*300)\r\n<Body Text=\"领导指示\" Size=\"$width,$height\">\r\n	<ImageList Name=\"imagelist1\">\r\n	 \r\n		<Image Source=\"pic01.gif\"/>\r\n	</ImageList>\r\n	<MouseGesturePanel eventR2L=\"cmd:Back()\" Dock=\"Fill\">\r\n\r\n#set($width=$wmul*240)\r\n#set($height=$hmul*244)\r\n		<ListView Name=\"DocList\" Location=\"0,0\" Size=\"$width,$height\" SmallImageList=\"Local:imagelist1\" View=\"Details\" ShowLine=\"True\">\r\n#set($width=$wmul*225)\r\n			<ColumnHeader Width=\"$width\" />\r\n	#foreach($record in $records)\r\n\r\n	#set($fields = $record.fields)\r\n 			<ListViewItem Text=\"${fields.get(\'title\').value}\" ImageIndex=\"0\"  Click=\"url:c=PointContent_Gov#url=${fields.get(\'url\').value}\" />\r\n	#end\r\n		</ListView>\r\n#set($height=$hmul*250)\r\n <Label Text=\"$PageInfo\" Size=\"240, 20\" Location=\"0, $height\" TextAlign=\"TopRight\"/>\r\n	</MouseGesturePanel>\r\n <MenuItem Text=\"返回\" Click=\"cmd:Back()\"></MenuItem>\r\n <MenuItem Text=\"操作\">\r\n#if($PageCur==$Back)\r\n  		<MenuItem Text=\"上一页\"  Enabled=\"false\"/>\r\n#else\r\n                <MenuItem Text=\"上一页\"  Click=\"url:c=PointList_Gov#pageNumber=${dataprops.get(\'back\')}#target=_self\"/>\r\n#end\r\n#if($PageCur==$Next)\r\n  		<MenuItem Text=\"下一页\"  Enabled=\"false\"/>\r\n#else\r\n                <MenuItem Text=\"下一页\"  Click=\"url:c=PointList_Gov#pageNumber=${dataprops.get(\'next\')}#target=_self\"/>\r\n#end\r\n       </MenuItem>\r\n	 	 </Body>\r\n</msc>\r\n</Response>', '60', '4896', 'wm');
INSERT INTO `menu` VALUES ('1', '', '单位管理', '/indextAction.do?method=doDept', '111', '2', null, 'S_ADMIN', '1');
INSERT INTO `menu` VALUES ('2', 'user', '人员管理', '/indextAction.do?method=doUser', '111', '3', null, 'S_ADMIN', '1');
INSERT INTO `menu` VALUES ('3', '', '角色管理', '/indextAction.do?method=doRole', '111', '4', null, 'S_ADMIN', '1');
INSERT INTO `menu` VALUES ('4', 'app', '应用配置', '/indextAction.do?method=doApp', '222', '6', null, 'S_ADMIN', '1');
INSERT INTO `menu` VALUES ('5', 'app', '功能配置', '/indextAction.do?method=doFunt', '222', '7', null, null, '1');
INSERT INTO `menu` VALUES ('6', 'app', '数据管理', '/indextAction.do?method=doRecord', '222', '8', null, null, '1');
INSERT INTO `menu` VALUES ('7', 'dictionary', '一级字典表', '/indextAction.do?method=doOneItem', '333', '10', null, 'S_ADMIN', '1');
INSERT INTO `menu` VALUES ('8', 'dictionary', '二级字典表', '/indextAction.do?method=doTwoItem', '333', '11', null, 'S_ADMIN', '1');
INSERT INTO `menu` VALUES ('9', 'version', '版本列表', '/indextAction.do?method=doVersion', '444', '13', null, 'S_ADMIN', '1');
INSERT INTO `menu` VALUES ('10', 'user', '个人信息', '/indextAction.do?method=doPerson', '555', '15', null, 'C_USER', '1');
INSERT INTO `menu` VALUES ('11', null, '单位信息', '/indextAction.do?method=doDepart', '666', '17', null, 'U_MANAGE', '1');
INSERT INTO `menu` VALUES ('14', null, '菜单列表', '/indextAction.do?method=doMenu', '999', '22', null, '', '1');
INSERT INTO `menu` VALUES ('111', 'nav', '组织管理', '', '0', '1', 'orge', 'S_ADMIN', '0');
INSERT INTO `menu` VALUES ('222', 'app', '应用管理', '/indextAction.do?method=doApp', '0', '5', 'app', 'S_ADMIN', '0');
INSERT INTO `menu` VALUES ('333', 'dictionary', '字典管理', null, '0', '9', 'dict', 'S_ADMIN', '0');
INSERT INTO `menu` VALUES ('444', 'version', '版本管理', null, '0', '12', 'vers', 'S_ADMIN', '0');
INSERT INTO `menu` VALUES ('555', 'dictionary', '个人管理', null, '0', '14', 'pers', 'C_USER', '0');
INSERT INTO `menu` VALUES ('666', 'dictionary', '单位管理', null, '0', '16', 'part', 'U_MANAGE', '0');
INSERT INTO `menu` VALUES ('999', 'version', '菜单管理', null, '0', '21', 'menu', '', '0');
INSERT INTO `menu` VALUES ('1000', null, '系统菜单', null, null, null, null, null, '0');
INSERT INTO `menu` VALUES ('1003', 'nav', '数据源管理', '1111', '0', '', 'menu27', 'S_ADMIN', '0');
INSERT INTO `menu` VALUES ('1004', 'nav', '数据源配置', '/indextAction.do?method=doDataSrc', '1003', '', '', 'S_ADMIN', '1');
INSERT INTO `menu` VALUES ('1005', '33', '单位配置', '/indextAction.do?method=doUnitConfig', '-1', '', '', 'S_ADMIN', '1');
INSERT INTO `menu` VALUES ('1006', 'nav', '系统设置', 'ss', '0', '', 'menu57', 'S_ADMIN', '0');
INSERT INTO `menu` VALUES ('1007', 'nav', '平台配置', '/indextAction.do?method=doPlateform', '1006', '', '', 'S_ADMIN', '1');
INSERT INTO `menu` VALUES ('1008', 'app', '邮件数据', '/indextAction.do?method=mailRecord', '222', '', '', 'S_ADMIN', '1');
INSERT INTO `one_level_code` VALUES ('CLIENT_SYS_TYPE', '', 'Mobile VGA;Android;Brew;wm;ie_wm;wince');
INSERT INTO `one_level_code` VALUES ('FIELD_MAPPING_DS', null, 'FIELD_MAPPING_DS');
INSERT INTO `one_level_code` VALUES ('MAIL_CODE_KEY', null, 'MAIL');
INSERT INTO `one_level_code` VALUES ('UNIT_PROF_EXT', '单位配置默认键值\r\n置单位时，扩展配置从这里读取.\r\n\r\n\r\n\r\n', 'UNIT_PROF_EXT');
INSERT INTO `one_level_code` VALUES ('USER_APP_PROF_EXT', '用户-应用-扩展配置', 'USER_APP_PROF_EXT');
INSERT INTO `one_level_code` VALUES ('VERSION_PATH', null, 'C://version');
INSERT INTO `one_level_code` VALUES ('VER_ATTACH_CFG', null, 'VER_ATTACH_CFG');
INSERT INTO `platform_prof` VALUES ('109', 'THREAD_POOL_SIZE', '20');
INSERT INTO `platform_prof` VALUES ('110', 'THREAD_POOL_MAX_SIZE', '40');
INSERT INTO `platform_prof` VALUES ('111', 'THRAD_WORK_QUEUE_SIZE', '200');
INSERT INTO `platform_prof` VALUES ('112', 'THREAD_KEEP_ALIVE_TIME', '1000');
INSERT INTO `platform_prof` VALUES ('113', 'PERSIST_FILE_LOCAL_PATH', 'file');
INSERT INTO `platform_prof` VALUES ('114', 'TEMP_FILE_LOCAL_PATH', 'doc');
INSERT INTO `platform_prof` VALUES ('116', 'MAIL_ATTACH_LOCAL_PATH', 'mail');
INSERT INTO `platform_prof` VALUES ('117', 'MAIL_CFG', 'mobiledev');
INSERT INTO `platform_prof` VALUES ('118', 'MAIL_DATA_TEMPLATE', '$EVENT.mailEvent.receiveAndSave($CONTEXT)\r\n#if(${mailnum} && ${mailnum}!=0)\r\n#set($smscontent=\"DATA:邮件=${mailnum}\")\r\n##foreach($mail in $mails)\r\n##set($smscontent=\"${smscontent}  ${velocityCount})来自:${mail.sender},标题:${mail.subject}\")\r\n##end\r\n$EVENT.smsEvent.sendUserAppSMS($smscontent,${CONTEXT})\r\n##$EVENT.localMailEvent.modifyMailStatus($mails,\'2\')\r\n#end');
INSERT INTO `platform_prof` VALUES ('120', 'test2', '$EVENT.mailEvent.receiveAndSave($CONTEXT)\r\n#if(${mailnum} && ${mailnum}!=0)\r\n#set($smscontent=\"DATA:邮件=${mailnum}\")\r\n##foreach($mail in $mails)\r\n##set($smscontent=\"${smscontent}  ${velocityCount})来自:${mail.sender},标题:${mail.subject}\")\r\n##end\r\n$EVENT.smsEvent.sendUserAppSMS($smscontent,${CONTEXT})\r\n##$EVENT.localMailEvent.modifyMailStatus($mails,\'2\')\r\n#end');
INSERT INTO `platform_prof` VALUES ('121', 'SYSTEM_INFO_REFRESH_TIME', '7200');
INSERT INTO `platform_prof` VALUES ('122', 'RequestXsl1', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\"/>\r\n	<xsl:template match=\"/\">\r\n	<xsl:variable name=\"start\"><![CDATA[<![CDA]]></xsl:variable>\r\n	<xsl:variable name=\"start1\"><![CDATA[TA[]]></xsl:variable>\r\n	<xsl:variable name=\"end\"><![CDATA[]]]]></xsl:variable>\r\n	<xsl:variable name=\"end1\"><![CDATA[>]]></xsl:variable>\r\n		<Request>\r\n			<RequestInfos>\r\n				<xsl:value-of select=\"concat($start,$start1)\" disable-output-escaping=\"yes\"/>\r\n				<xsl:apply-templates select=\"RQ/IF\"/>\r\n				<xsl:value-of select=\"concat($end,$end1)\" disable-output-escaping=\"yes\"/>\r\n			</RequestInfos>\r\n			<PassContent>\r\n				<xsl:apply-templates select=\"RQ/CT\"/>				\r\n			</PassContent>			\r\n		</Request>\r\n	</xsl:template>\r\n	<xsl:template match=\"CT\">\r\n		<xsl:value-of select=\"normalize-space(text())\" disable-output-escaping=\"yes\"/>\r\n	</xsl:template>\r\n	<xsl:template match=\"IF\">\r\n		<Info Name=\"RequestCode\">\r\n			<xsl:value-of select=\"I[@N=\'C\']\"/>\r\n		</Info>\r\n		<Info Name=\"RequestUnitCode\">\r\n			<xsl:value-of select=\"I[@N=\'U\']\"/>\r\n		</Info>\r\n		<Info Name=\"RequestUserLoginName\">\r\n			<xsl:value-of select=\"I[@N=\'N\']\"/>\r\n		</Info>\r\n		<Info Name=\"RequestUserPassword\">\r\n			<xsl:value-of select=\"I[@N=\'P\']\"/>\r\n		</Info>\r\n		<Info Name=\"RequestAuthString\">\r\n			<xsl:value-of select=\"I[@N=\'A\']\"/>\r\n		</Info>\r\n		<Info Name=\"Session\">\r\n			<xsl:value-of select=\"I[@N=\'S\']\"/>\r\n		</Info>\r\n		<Info Name=\"ClientSysType\">\r\n			<xsl:value-of select=\"I[@N=\'T\']\"/>\r\n		</Info>\r\n		<Info Name=\"Resolution\">\r\n			<xsl:value-of select=\"I[@N=\'R\']\"/>\r\n		</Info>\r\n	</xsl:template>\r\n</xsl:stylesheet>\r\n');
INSERT INTO `platform_prof` VALUES ('123', 'RequestXsl2', '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\r\n<xsl:output method=\"xml\" version=\"1.0\" encoding=\"utf-8\"/>\r\n	<xsl:template match=\"/\">\r\n	<xsl:variable name=\"start\"><![CDATA[<![CDA]]></xsl:variable>\r\n	<xsl:variable name=\"start1\"><![CDATA[TA[]]></xsl:variable>\r\n	<xsl:variable name=\"end\"><![CDATA[]]]]></xsl:variable>\r\n	<xsl:variable name=\"end1\"><![CDATA[>]]></xsl:variable>\r\n		<Request>\r\n			<RequestInfos>\r\n				<xsl:apply-templates select=\"Request/RequestInfos\"/>	\r\n			</RequestInfos>\r\n			<PassContent>\r\n				<xsl:value-of select=\"concat($start,$start1)\" disable-output-escaping=\"yes\"/>\r\n				<Data>				\r\n					<xsl:apply-templates select=\"Request/PassContent\"/>				\r\n				</Data>\r\n				<xsl:value-of select=\"concat($end,$end1)\" disable-output-escaping=\"yes\"/>	\r\n			</PassContent>\r\n			\r\n		</Request>\r\n	</xsl:template>\r\n	<xsl:template match=\"RequestInfos\">\r\n		<xsl:value-of select=\"normalize-space(text())\" disable-output-escaping=\"yes\"/>\r\n	</xsl:template>\r\n	<xsl:template match=\"PassContent\">\r\n		<DataHead>\r\n			<xsl:if test=\"count(D/H/*) &gt; 0\">\r\n			<xsl:apply-templates select=\"D/H\"/>\r\n			</xsl:if>	\r\n		</DataHead>\r\n		<FieldList>\r\n			<xsl:if test=\"count(D/L/*) &gt; 0\">\r\n			<xsl:apply-templates select=\"D/L\"/>\r\n			</xsl:if>\r\n		</FieldList>\r\n	</xsl:template>\r\n	<xsl:template match=\"H/P\">\r\n	<xsl:variable name=\"p1\"><![CDATA[<Prop Name=\"]]></xsl:variable>\r\n	<xsl:variable name=\"p2\"><![CDATA[\">]]></xsl:variable>\r\n	<xsl:variable name=\"p3\"><![CDATA[</Prop>]]></xsl:variable>\r\n		<xsl:value-of select=\"$p1\" disable-output-escaping=\"yes\"/>\r\n		<xsl:value-of select=\"@N\"/>\r\n		<xsl:value-of select=\"$p2\" disable-output-escaping=\"yes\"/>\r\n		<xsl:value-of select=\"normalize-space(text())\"/>\r\n		<xsl:value-of select=\"$p3\" disable-output-escaping=\"yes\"/>\r\n	</xsl:template>\r\n	<xsl:template match=\"L/F\">\r\n	<xsl:variable name=\"p1\"><![CDATA[<Field Name=\"]]></xsl:variable>\r\n	<xsl:variable name=\"p2\"><![CDATA[\">]]></xsl:variable>\r\n	<xsl:variable name=\"p3\"><![CDATA[</Field>]]></xsl:variable>\r\n		<xsl:value-of select=\"$p1\" disable-output-escaping=\"yes\"/>\r\n		<xsl:value-of select=\"@N\"/>\r\n		<xsl:value-of select=\"$p2\" disable-output-escaping=\"yes\"/>\r\n		<xsl:value-of select=\"normalize-space(text())\"/>\r\n		<xsl:value-of select=\"$p3\" disable-output-escaping=\"yes\"/>\r\n	</xsl:template>\r\n</xsl:stylesheet>\r\n');
INSERT INTO `platform_prof` VALUES ('125', 'ResponseXsl', '');
INSERT INTO `platform_prof` VALUES ('126', 'errortemplate', '<Response>\r\n	<msc>\r\n	 <Head>\r\n		<Info Name=\'Code\'>$Code</Info>\r\n\r\n		<Info Name=\'Reason\'>$Reason</Info>\r\n	</Head>\r\n\r\n<Body Text=\"错误信息\" >\r\n#if($Reason && $Reason.length() > 0)\r\n	<Label Name=\"label1\" Location=\"10,10\" Width=\"210\" Text=\"错误： $Reason\"/>\r\n#else\r\n	<Label Name=\"label1\" Location=\"10,10\" Text=\"有未知错误\"/>\r\n#end\r\n	<MenuItem Text=\"确定\" Click=\"cmd:Back()\"/>\r\n</Body>\r\n</msc>\r\n</Response>');
INSERT INTO `r_admin_unit` VALUES ('76', '55', '2');
INSERT INTO `r_admin_unit` VALUES ('77', '55', '4');
INSERT INTO `r_admin_unit` VALUES ('78', '57', '1');
INSERT INTO `r_user_unit_role` VALUES ('36', '1', '3', '271');
INSERT INTO `r_user_unit_role` VALUES ('56', '4', '1', '305');
INSERT INTO `r_user_unit_role` VALUES ('55', '2', '2', '306');
INSERT INTO `r_user_unit_role` VALUES ('37', '1', '3', '308');
INSERT INTO `r_user_unit_role` VALUES ('57', '1', '2', '310');
INSERT INTO `r_user_unit_role` VALUES ('59', '5', '2', '315');
INSERT INTO `role` VALUES ('1', '超级管理员', 'S_ADMIN', '管理所有的系统功能', '1');
INSERT INTO `role` VALUES ('2', '单位管理员', 'U_MANAGE', '管理单位内的用户信息', '2');
INSERT INTO `role` VALUES ('3', '普通用户', 'C_USER', '管理自己的用户做有的功能', '19');
INSERT INTO `two_level_code` VALUES ('APP_CODE_SET', 'MAIL_APP_CODE', 'MAIL');
INSERT INTO `two_level_code` VALUES ('APP_CODE_SET', 'NOTICE_APP_CODE', 'Bulletin');
INSERT INTO `two_level_code` VALUES ('APP_CODE_SET', 'OA_APP_CODE', 'DigitalGov');
INSERT INTO `two_level_code` VALUES ('APP_CODE_SET', 'TASK_APP_CODE', 'task');
INSERT INTO `two_level_code` VALUES ('APP_RECORD_STATE', '0', '不可用');
INSERT INTO `two_level_code` VALUES ('APP_RECORD_STATE', '1', '可用');
INSERT INTO `two_level_code` VALUES ('APP_RECORD_STATE', '2', '失效');
INSERT INTO `two_level_code` VALUES ('CLIENT_SYS_TYPE', 'brew', 'brew,brew2,brew3');
INSERT INTO `two_level_code` VALUES ('CLIENT_SYS_TYPE', 'J2me', 'java');
INSERT INTO `two_level_code` VALUES ('CLIENT_SYS_TYPE', 'Mobile', 'mobile5.0,mobile6.0,mobile通用');
INSERT INTO `two_level_code` VALUES ('errorcode', '000000', '未知错误，请检查代理平台日志');
INSERT INTO `two_level_code` VALUES ('errorcode', '010001', '该用户在代理平台中不存在');
INSERT INTO `two_level_code` VALUES ('errorcode', '010002', '用户鉴权失败，请检查你输入的用户名及密码是否正确。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010003', '用户所在的单位对请求的应用没有授权');
INSERT INTO `two_level_code` VALUES ('errorcode', '010004', '用户对所请求的应用没有授权');
INSERT INTO `two_level_code` VALUES ('errorcode', '010005', '用户对应的单位不存在');
INSERT INTO `two_level_code` VALUES ('errorcode', '010006', '请求的功能不存在');
INSERT INTO `two_level_code` VALUES ('errorcode', '010007', '请求的应用不存在');
INSERT INTO `two_level_code` VALUES ('errorcode', '010008', '无法解析请求,请检查请求数据');
INSERT INTO `two_level_code` VALUES ('errorcode', '010010', '应用webservice调用错误');
INSERT INTO `two_level_code` VALUES ('errorcode', '010011', '应用返回数据错误');
INSERT INTO `two_level_code` VALUES ('errorcode', '010012', '连接应用系统错误');
INSERT INTO `two_level_code` VALUES ('errorcode', '010013', '用户认证串错误');
INSERT INTO `two_level_code` VALUES ('errorcode', '010101', 'webService地址没有定义');
INSERT INTO `two_level_code` VALUES ('errorcode', '010102', '功能模版没有定义');
INSERT INTO `two_level_code` VALUES ('errorcode', '010103', '对应的手机模版没有定义');
INSERT INTO `two_level_code` VALUES ('errorcode', '010104', '该功能对应的数据源没有定义，请检查数据源是否配置正确。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010105', 'BS适配请求应用系统异常，可能应用系统关闭');
INSERT INTO `two_level_code` VALUES ('errorcode', '010106', 'BS适配请求系统返回空');
INSERT INTO `two_level_code` VALUES ('errorcode', '010107', 'XSL模版提取数据异常，请求检查xsl配置及提取的xhtml数据。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010108', '系统Session过期,请您重新登录系统。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010109', '登录应用系统失败,请检查用户名或密码是否正确');
INSERT INTO `two_level_code` VALUES ('errorcode', '010110', '数据库没有配置xsl提取数据模版，请检查功能配置是否全面。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010111', '级联表达式版错误');
INSERT INTO `two_level_code` VALUES ('errorcode', '010112', '手机客户端请求Sessionid为空，请检查手机客户端的请求信息。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010113', '手机客户端未登录，请重新登录。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010114', '数据库中配置的配置的应用编码（APP_CODE）为空。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010115', 'XSL模版分析的数据内容为空。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010116', '操作失败,请检查代理平台日志。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010117', '手机端请求的Sesssion错误，请重新登陆。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010118', '手机客户端请求单位编码为空。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010120', '对应的数据模板没有定义，请检查功能配置是否全面。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010121', '定制类解析错误');
INSERT INTO `two_level_code` VALUES ('errorcode', '010122', '解析数据模版错误，请检查数据模版中的标准输出模版是否正确。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010123', 'Velocity模版运行错误，请查看代理平台的详细错误日志信息。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010124', 'Velocity模版语法错误，请检查数据模版是否正确。');
INSERT INTO `two_level_code` VALUES ('errorcode', '010125', 'xsl转换request简化规范异常');
INSERT INTO `two_level_code` VALUES ('errorcode', '010126', 'xsl转换response简化规范异常');
INSERT INTO `two_level_code` VALUES ('FIELD_MAPPING_DS', 'db_driver', '连接驱动');
INSERT INTO `two_level_code` VALUES ('FIELD_MAPPING_DS', 'db_dstype', '数据源类型');
INSERT INTO `two_level_code` VALUES ('FIELD_MAPPING_DS', 'db_name', '数据库名');
INSERT INTO `two_level_code` VALUES ('FIELD_MAPPING_DS', 'db_password', '数据库密码');
INSERT INTO `two_level_code` VALUES ('FIELD_MAPPING_DS', 'db_type', '数据库类型');
INSERT INTO `two_level_code` VALUES ('FIELD_MAPPING_DS', 'db_url', '连接字符串');
INSERT INTO `two_level_code` VALUES ('FIELD_MAPPING_DS', 'db_username', '数据库用户名');
INSERT INTO `two_level_code` VALUES ('FIELD_MAPPING_DS', 'ds_pool_defnum', '连接池默认连接数');
INSERT INTO `two_level_code` VALUES ('FIELD_MAPPING_DS', 'ds_pool_maxnum', '连接池最大连接数');
INSERT INTO `two_level_code` VALUES ('FIELD_MAPPING_DS', 'ds_pool_minnum', '连接池最小连接数');
INSERT INTO `two_level_code` VALUES ('MAIL', 'mobiledev', 'mobiledev,,true,mobiledev,,false');
INSERT INTO `two_level_code` VALUES ('MAIL_RECORD_STATE', '0', '不可用');
INSERT INTO `two_level_code` VALUES ('MAIL_RECORD_STATE', '1', '可用');
INSERT INTO `two_level_code` VALUES ('UNIT_PROF_EXT', 'BS_SYSTEM_DIR', '应用服务器路径');
INSERT INTO `two_level_code` VALUES ('UNIT_PROF_EXT', 'BS_SYSTEM_DOMAIN', '应用服务器地址');
INSERT INTO `two_level_code` VALUES ('UNIT_PROF_EXT', 'WEBSERVICE_URL', 'Webservice请求地址');
INSERT INTO `two_level_code` VALUES ('UNIT_PROF_EXT', 'WEB_INDEX', 'web登录首页');
INSERT INTO `two_level_code` VALUES ('USER_APP_PROF_EXT', 'Bulletin#USER_APP_PROF_EXT_TEST1', '公告');
INSERT INTO `two_level_code` VALUES ('USER_APP_PROF_EXT', 'OA#BBB', '样例');
INSERT INTO `two_level_code` VALUES ('USER_APP_PROF_EXT', 'OA#USER_APP_PROF_EXT_TEST2', '办公');
INSERT INTO `two_level_code` VALUES ('VERSION_STATE', '0', '过期版本');
INSERT INTO `two_level_code` VALUES ('VERSION_STATE', '1', '可用版本');
INSERT INTO `two_level_code` VALUES ('VER_ATTACH_CFG', 'DOWNLOAD_SUBDIR', 'upload/version');
INSERT INTO `two_level_code` VALUES ('VER_ATTACH_CFG', 'DOWNLOAD_URL', 'http://132.159.156.163:8000/map');
INSERT INTO `two_level_code` VALUES ('VER_ATTACH_CFG', 'UPLOAD_ABSOLUTE_DIR', 'C:\\Tomcat 6.0.20\\webapps\\map');
INSERT INTO `two_level_code` VALUES ('VER_ATTACH_CFG', 'UPLOAD_SUBDIR', 'upload\\version');
INSERT INTO `unit` VALUES ('1', '上海研究院', null, '上海研究院', 'sh_yan');
INSERT INTO `unit` VALUES ('2', '上海理想', null, '上海理想信息产业（集团）有限公司', 'sh_ideal');
INSERT INTO `unit` VALUES ('4', '电信', null, '系统初始化默认单位', 'initUnit');
INSERT INTO `unit` VALUES ('5', '电子政务', null, '电子政务', 'digitalUnit');
INSERT INTO `unit_prof` VALUES ('22', '2', 'MAIL_CFG', ',,,,,,,0');
INSERT INTO `unit_prof` VALUES ('23', '2', 'BS_SYSTEM_DOMAIN', 'http://mobile1.sh.ctc.com');
INSERT INTO `unit_prof` VALUES ('24', '2', 'BS_SYSTEM_DIR', '/dzweboa');
INSERT INTO `unit_prof` VALUES ('25', '2', 'WEBSERVICE_URL', 'http://mobiledev:80/weboa/wsDemo20090416.nsf/appServer?OpenWebService');
INSERT INTO `unit_prof` VALUES ('39', '4', 'MAIL_CFG', ',,,true,,,,0');
INSERT INTO `unit_prof` VALUES ('40', '4', 'BS_SYSTEM_DIR', '');
INSERT INTO `unit_prof` VALUES ('41', '4', 'BS_SYSTEM_DOMAIN', '');
INSERT INTO `unit_prof` VALUES ('42', '4', 'WEBSERVICE_URL', 'http://mobiledev:80/weboa/wsDemo20090416.nsf/appServer?OpenWebService');
INSERT INTO `unit_prof` VALUES ('48', '1', 'MAIL_CFG', ',,,false,,,false,0');
INSERT INTO `unit_prof` VALUES ('49', '1', 'BS_SYSTEM_DOMAIN', 'http://mobile1.sh.ctc.com');
INSERT INTO `unit_prof` VALUES ('50', '1', 'BS_SYSTEM_DIR', '/dxgsweboa');
INSERT INTO `unit_prof` VALUES ('51', '1', 'WEBSERVICE_URL', 'http://mobiledev:80/weboa/wsDemo20090416.nsf/appServer?OpenWebService');
INSERT INTO `unit_prof` VALUES ('52', '1', 'WEB_INDEX', '<html>\r\n  <head>   \r\n    <title>用户登录</title>    \r\n  </head>  \r\n  <body>\r\n <form name=\"loginForm\" method=\"post\" action=\"browser\">\r\n<table align=\"center\" width=\"240\" border=\"3\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"EAE8E8\">\r\n  <tr>\r\n    <td align=\"center\" valign=\"middle\">\r\n      <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\r\n        <tr>\r\n          <td width=\"100%\" valign=\"top\" >\r\n            <table width=\"46%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n              \r\n              <tr>\r\n                <td width=\"30%\" height=\"32\">用户名：</td>\r\n                <td width=\"70%\" height=\"32\" valign=\"middle\">\r\n                  <input type=\"text\" name=\"Browser_Username\" class=\"textField\"/> \r\n                  <input type=\"hidden\" name=\"RequestCode\" value=\"MainPage\"/>                  \r\n                </td>\r\n                \r\n              </tr>\r\n              <tr>\r\n                <td width=\"30%\" height=\"26\">密&nbsp;&nbsp;&nbsp;&nbsp;码：\r\n                </td>\r\n                <td width=\"70%\" height=\"26\" valign=\"middle\">\r\n                  <input type=\"password\" name=\"Browser_Password\" class=\"textField\" onkeydown=\"if(event.keyCode==13){document.loginForm.submit();}\"/>          \r\n\r\n \r\n                </td>\r\n              </tr>\r\n              <tr>\r\n                <td height=\"45\" width=\"50%\">\r\n                  <div  align=\"center\">\r\n                    <input type=\"submit\" value=\"登录\" class=\"bt1\">\r\n                  </div>\r\n                 </td>\r\n                 <td height=\"45\" width=\"50%\">\r\n                  <div align=\"center\">\r\n                    <input name=\"Button\"  type=\"button\" value=\"返回首页\" onclick=\"window.location.href = \'index.html\'\">\r\n                  </div>\r\n                </td>\r\n              </tr>\r\n            </table>\r\n          </td>\r\n        </tr>\r\n      </table>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<input type=\"hidden\" name=\"ClientSysType\" value=\"ie_wm\"/>\r\n<input name=\"RequestAuthString\" type=\"hidden\"  value=\"0000\"/>\r\n</form>\r\n  </body>\r\n</html>');
INSERT INTO `unit_prof` VALUES ('73', '5', 'MAIL_CFG', ',,,,,,,0');
INSERT INTO `unit_prof` VALUES ('74', '5', 'BS_SYSTEM_DIR', '/develop');
INSERT INTO `unit_prof` VALUES ('75', '5', 'BS_SYSTEM_DOMAIN', 'http://222.77.66.55:8881');
INSERT INTO `unit_prof` VALUES ('76', '5', 'WEBSERVICE_URL', '');
INSERT INTO `unit_prof` VALUES ('77', '5', 'WEB_INDEX', '');
INSERT INTO `user` VALUES ('36', 'admin_dx', 'admin_dx', '698d51a19d8a121ce581499d7b701668', '18925243793', '', '1', '1', 'mobile通用');
INSERT INTO `user` VALUES ('37', 'daiping', 'daiping', '698d51a19d8a121ce581499d7b701668', '18925243793', '', '1', '1', 'mobile通用');
INSERT INTO `user` VALUES ('55', 'ada', 'ada', '698d51a19d8a121ce581499d7b701668', '13455555555', '', '1', '2', 'kjava');
INSERT INTO `user` VALUES ('56', 'admin', 'admin', '698d51a19d8a121ce581499d7b701668', '', '', '1', '4', 'mobile通用');
INSERT INTO `user` VALUES ('57', 'admin_brew', 'admin_brew', '698d51a19d8a121ce581499d7b701668', '13456789087', '', '1', '1', 'brew');
INSERT INTO `user` VALUES ('59', 'test1', 'test1', '698d51a19d8a121ce581499d7b701668', '', '', '1', '5', 'mobile通用');
INSERT INTO `user_app_prof` VALUES ('59', '36', 'OA_USER_NAME', 'admin_dx', '1376');
INSERT INTO `user_app_prof` VALUES ('59', '36', 'USER_PASSWORD', '25b7f5af1ee0d9562a', '1377');
INSERT INTO `user_app_prof` VALUES ('4', '36', 'MAIL_CFG', 'mobiledev,admin_dx,219a5t80ycf276ce2f,mobiledev,25,true,mobiledev,110,true,20K,10,36000000', '1378');
INSERT INTO `user_app_prof` VALUES ('65', '36', 'APP_NOTICE', '1', '1379');
INSERT INTO `user_app_prof` VALUES ('61', '36', 'APP_NOTICE', '2', '1380');
INSERT INTO `user_app_prof` VALUES ('4', '36', 'APP_NOTICE', '3', '1381');
INSERT INTO `user_app_prof` VALUES ('59', '55', 'USER_PASSWORD', '25b7f5afee0td962a', '1508');
INSERT INTO `user_app_prof` VALUES ('59', '56', 'OA_USER_NAME', 'admin', '1712');
INSERT INTO `user_app_prof` VALUES ('4', '56', 'MAIL_CFG', ',,,,23,,,23,,20K,0,', '1713');
INSERT INTO `user_app_prof` VALUES ('65', '56', 'APP_NOTICE', '1', '1714');
INSERT INTO `user_app_prof` VALUES ('61', '56', 'APP_NOTICE', '2', '1715');
INSERT INTO `user_app_prof` VALUES ('4', '56', 'APP_NOTICE', '3', '1716');
INSERT INTO `user_app_prof` VALUES ('61', '56', 'USER_APP_PROF_EXT_TEST1', '', '1717');
INSERT INTO `user_app_prof` VALUES ('59', '56', 'USER_APP_PROF_EXT_TEST2', '', '1718');
INSERT INTO `user_app_prof` VALUES ('59', '55', 'OA_USER_NAME', 'admin', '1719');
INSERT INTO `user_app_prof` VALUES ('4', '55', 'MAIL_CFG', ',,,,23,,,23,,20K,0,', '1720');
INSERT INTO `user_app_prof` VALUES ('65', '55', 'APP_NOTICE', '1', '1721');
INSERT INTO `user_app_prof` VALUES ('61', '55', 'APP_NOTICE', '2', '1722');
INSERT INTO `user_app_prof` VALUES ('4', '55', 'APP_NOTICE', '3', '1723');
INSERT INTO `user_app_prof` VALUES ('61', '55', 'USER_APP_PROF_EXT_TEST1', 'what', '1724');
INSERT INTO `user_app_prof` VALUES ('59', '55', 'USER_APP_PROF_EXT_TEST2', 'when', '1725');
INSERT INTO `user_app_prof` VALUES ('59', '37', 'OA_USER_NAME', 'daiping', '1733');
INSERT INTO `user_app_prof` VALUES ('59', '37', 'USER_PASSWORD', '219a5t80ycf276ce2f', '1734');
INSERT INTO `user_app_prof` VALUES ('4', '37', 'MAIL_CFG', 'mobiledev,daiping,219a5t80ycf276ce2f,mobiledev,25,true,mobiledev,110,true,20K,10,36000000', '1735');
INSERT INTO `user_app_prof` VALUES ('65', '37', 'APP_NOTICE', '1', '1736');
INSERT INTO `user_app_prof` VALUES ('61', '37', 'APP_NOTICE', '2', '1737');
INSERT INTO `user_app_prof` VALUES ('4', '37', 'APP_NOTICE', '3', '1738');
INSERT INTO `user_app_prof` VALUES ('61', '37', 'USER_APP_PROF_EXT_TEST1', '', '1739');
INSERT INTO `user_app_prof` VALUES ('59', '37', 'USER_APP_PROF_EXT_TEST2', '', '1740');
INSERT INTO `user_app_prof` VALUES ('59', '57', 'OA_USER_NAME', 'admin_dx', '1750');
INSERT INTO `user_app_prof` VALUES ('59', '57', 'USER_PASSWORD', '219a5t80ycf276ce2f', '1751');
INSERT INTO `user_app_prof` VALUES ('4', '57', 'MAIL_CFG', ',,,,23,,,23,,20K,0,', '1752');
INSERT INTO `user_app_prof` VALUES ('65', '57', 'APP_NOTICE', '1', '1753');
INSERT INTO `user_app_prof` VALUES ('61', '57', 'APP_NOTICE', '2', '1754');
INSERT INTO `user_app_prof` VALUES ('4', '57', 'APP_NOTICE', '3', '1755');
INSERT INTO `user_app_prof` VALUES ('61', '57', 'USER_APP_PROF_EXT_TEST1', '', '1756');
INSERT INTO `user_app_prof` VALUES ('59', '57', 'BBB', '', '1757');
INSERT INTO `user_app_prof` VALUES ('59', '57', 'USER_APP_PROF_EXT_TEST2', '', '1758');
INSERT INTO `user_app_prof` VALUES ('70', '59', 'OA_USER_NAME', 'zdh', '1783');
INSERT INTO `user_app_prof` VALUES ('70', '59', 'USER_PASSWORD', '219a5t80ycf276ce2f', '1784');
INSERT INTO `user_app_prof` VALUES ('4', '59', 'MAIL_CFG', ',,,,23,,,23,,20K,0,', '1785');
INSERT INTO `user_app_prof` VALUES ('61', '59', 'USER_APP_PROF_EXT_TEST1', '', '1786');
INSERT INTO `user_app_prof` VALUES ('59', '59', 'BBB', '', '1787');
INSERT INTO `user_app_prof` VALUES ('59', '59', 'USER_APP_PROF_EXT_TEST2', '', '1788');
INSERT INTO `version` VALUES ('1', 'j2me黄金版', '1.0', '2008-10-10', '1', 'j2me');
INSERT INTO `version` VALUES ('3', '钻石版', '1.4', '2009-06-23', '1', 'Brew');
INSERT INTO `version` VALUES ('4', 'wm通用版', '1.1', '2009-11-16', '1', 'wm');
INSERT INTO `version` VALUES ('8', 'SmartUpdater', '1.1', '2010-01-07', '0', 'wm');
INSERT INTO `version` VALUES ('14', 'wm通用版', '1.0', '2010-01-11', '', 'wm');
INSERT INTO `version` VALUES ('17', 'SmartUpdater', '1.0', '2010-01-12', '1', 'wm');
INSERT INTO `version` VALUES ('18', 'Brew', '1.0', '2010-01-26', '1', 'Brew');
INSERT INTO `version_att` VALUES ('23', '版本管理-修改版本2.jpg', '31.4', 'jpg', '52.26 KB', '3');
INSERT INTO `version_att` VALUES ('24', '菜单管理-导航菜单.jpg', '31.4', 'jpg', '8.98 KB', '3');
INSERT INTO `version_att` VALUES ('26', 'soap.pdf', '11.0', 'pdf', '176.32 KB', '1');
INSERT INTO `version_att` VALUES ('27', 'test.xml', '11.0', 'xml', '0.51 KB', '1');
INSERT INTO `version_att` VALUES ('28', 'javamail.jpg', '11.0', 'jpg', '114.85 KB', '1');
INSERT INTO `version_att` VALUES ('45', '新建 文本文档.txt', '11.0', 'txt', '23.32 KB', '1');
INSERT INTO `version_att` VALUES ('52', '1.png', 'upload/version/31.4/', 'png', '114.99 KB', '3');
INSERT INTO `version_att` VALUES ('67', '1.txt', 'upload/version/41.1/', 'txt', '9.76 KB', '4');
INSERT INTO `version_att` VALUES ('68', '2.txt', 'upload/version/41.1/', 'txt', '9.76 KB', '4');
INSERT INTO `version_att` VALUES ('69', '3.png', 'upload/version/41.1/', 'png', '0.78 KB', '4');
INSERT INTO `version_att` VALUES ('70', '4.zip', 'upload/version/41.1/', 'zip', '1.00 KB', '4');
INSERT INTO `version_att` VALUES ('71', '5.exe', 'upload/version/41.1/', 'exe', '5.0 KB', '4');
INSERT INTO `version_att` VALUES ('72', '6.cab', 'upload/version/41.1/', 'cab', '789.19 KB', '4');
INSERT INTO `version_att` VALUES ('73', 'smartupdater.exe', 'upload/version/81.1/', 'exe', '38.5 KB', '8');
INSERT INTO `version_att` VALUES ('74', 'lan.jpg', '181.0', 'jpg', '3.83 KB', '18');
INSERT INTO `version_att` VALUES ('75', '1214.txt', '181.0', 'txt', '0.02 KB', '18');
INSERT INTO `version_att` VALUES ('77', 'login.jpg', 'upload/version/181.0/', 'jpg', '18.19 KB', '18');
INSERT INTO `version_att` VALUES ('78', 'calculator.bmp', 'upload/version/181.0/', 'bmp', '3.05 KB', '18');
INSERT INTO `version_att` VALUES ('79', 'calendar2_off.png', 'upload/version/181.0/', 'png', '6.86 KB', '18');
INSERT INTO `version_att` VALUES ('80', 'calendar2_on.png', 'upload/version/181.0/', 'png', '3.94 KB', '18');
INSERT INTO `version_att` VALUES ('81', 'calendar.bmp', 'upload/version/181.0/', 'bmp', '3.05 KB', '18');
INSERT INTO `version_att` VALUES ('82', 'bkg_tabmenu.png', 'upload/version/181.0/', 'png', '0.12 KB', '18');
INSERT INTO `version_att` VALUES ('83', 'calendar_off.png', 'upload/version/181.0/', 'png', '1.79 KB', '18');
INSERT INTO `version_att` VALUES ('84', 'calendar_on.png', 'upload/version/181.0/', 'png', '1.89 KB', '18');
INSERT INTO `version_att` VALUES ('85', 'contacts.bmp', 'upload/version/181.0/', 'bmp', '3.05 KB', '18');
INSERT INTO `version_att` VALUES ('86', 'customer_off.png', 'upload/version/181.0/', 'png', '1.77 KB', '18');
INSERT INTO `version_att` VALUES ('87', 'customer_on.png', 'upload/version/181.0/', 'png', '1.85 KB', '18');
INSERT INTO `version_att` VALUES ('88', 'fileexplorer.bmp', 'upload/version/181.0/', 'bmp', '3.05 KB', '18');
INSERT INTO `version_att` VALUES ('89', 'group.gif', 'upload/version/181.0/', 'gif', '0.36 KB', '18');
INSERT INTO `version_att` VALUES ('90', 'home2_off.png', 'upload/version/181.0/', 'png', '6.85 KB', '18');
INSERT INTO `version_att` VALUES ('91', 'home2_on.png', 'upload/version/181.0/', 'png', '4.13 KB', '18');
INSERT INTO `version_att` VALUES ('92', 'home_off.png', 'upload/version/181.0/', 'png', '1.06 KB', '18');
INSERT INTO `version_att` VALUES ('93', 'home_on.png', 'upload/version/181.0/', 'png', '1.10 KB', '18');
INSERT INTO `version_att` VALUES ('94', 'internetexplorer.bmp', 'upload/version/181.0/', 'bmp', '3.05 KB', '18');
INSERT INTO `version_att` VALUES ('95', 'notes.bmp', 'upload/version/181.0/', 'bmp', '3.05 KB', '18');
INSERT INTO `version_att` VALUES ('96', 'ico6.png', 'upload/version/181.0/', 'png', '0.76 KB', '18');
INSERT INTO `version_att` VALUES ('97', 'titleimage1.jpg', 'upload/version/181.0/', 'jpg', '28.58 KB', '18');
INSERT INTO `version_att` VALUES ('98', 'titleimage.jpg', 'upload/version/181.0/', 'jpg', '3.68 KB', '18');
INSERT INTO `version_att` VALUES ('99', 'idb_ff.bmp', 'upload/version/181.0/', 'bmp', '0.21 KB', '18');
INSERT INTO `version_att` VALUES ('100', 'shop.bmp', 'upload/version/181.0/', 'bmp', '2.05 KB', '18');
INSERT INTO `version_att` VALUES ('101', 'order_off.png', 'upload/version/181.0/', 'png', '1.72 KB', '18');
INSERT INTO `version_att` VALUES ('102', 'customer.bmp', 'upload/version/181.0/', 'bmp', '3.05 KB', '18');
INSERT INTO `version_att` VALUES ('103', 'mail.bmp', 'upload/version/181.0/', 'bmp', '3.05 KB', '18');
INSERT INTO `version_att` VALUES ('104', 'dot9-2.gif', 'upload/version/181.0/', 'gif', '0.18 KB', '18');
INSERT INTO `version_att` VALUES ('105', 'ibprev.imagedefault.gif', 'upload/version/181.0/', 'gif', '0.18 KB', '18');
INSERT INTO `version_att` VALUES ('106', 'tasts.bmp', 'upload/version/181.0/', 'bmp', '3.05 KB', '18');
INSERT INTO `version_att` VALUES ('107', 'tabitem_select.bmp', 'upload/version/181.0/', 'bmp', '3.01 KB', '18');
INSERT INTO `version_att` VALUES ('108', 'products.bmp', 'upload/version/181.0/', 'bmp', '3.05 KB', '18');
INSERT INTO `version_update` VALUES ('13', '4', '14', '0', '0', 'script/1.1-1.0.xml', '1.0');
INSERT INTO `version_update` VALUES ('18', '14', '4', '1', '0', 'script/1.0-1.1.xml', '1.1');
INSERT INTO `version_update` VALUES ('23', '17', '8', '1', '0', 'null', '1.1');
INSERT INTO `version_update` VALUES ('24', '8', '17', '0', '0', 'null', '1.0');
